WP_Plugins_List_Table::_order_callback

Advertisement

Syntax Syntax

WP_Plugins_List_Table::_order_callback( array $plugin_a, array $plugin_b )

Parameters Parameters

$plugin_a

(Required)

$plugin_b

(Required)

Return Return

(int)

Source Source

File: wp-admin/includes/class-wp-plugins-list-table.php

		wp_localize_script(
			'updates',
			'_wpUpdatesItemCounts',
			array(
				'plugins' => $js_plugins,
				'totals'  => wp_get_update_data(),
			)
		);

		if ( ! $orderby ) {
			$orderby = 'Name';
		} else {
			$orderby = ucfirst( $orderby );
		}

Advertisement

Advertisement

Leave a Reply