all_plugins filter-hookWP 3.0.0

Filters the full array of plugins to list in the Plugins list table.

Usage

add_filter( 'all_plugins', 'wp_kama_all_plugins_filter' );

/**
 * Function for `all_plugins` filter-hook.
 * 
 * @param array $all_plugins An array of plugins to display in the list table.
 *
 * @return array
 */
function wp_kama_all_plugins_filter( $all_plugins ){

	// filter...
	return $all_plugins;
}
$all_plugins(array)
An array of plugins to display in the list table.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WP_Plugins_List_Table::prepare_items()
all_plugins
wp_ajax_toggle_auto_updates()
all_plugins
wp-admin/includes/class-wp-plugins-list-table.php 106
$all_plugins = apply_filters( 'all_plugins', get_plugins() );
wp-admin/includes/ajax-actions.php 5460
$all_items = apply_filters( 'all_plugins', get_plugins() );
wp-admin/plugins.php 508
$all_items = apply_filters( 'all_plugins', get_plugins() );

Where the hook is used in WordPress

Usage not found.