all_plugins
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
all_plugins
wp-admin/includes/class-wp-plugins-list-table.php 105
$all_plugins = apply_filters( 'all_plugins', get_plugins() );
wp-admin/plugins.php 527
$all_items = apply_filters( 'all_plugins', get_plugins() );
wp-admin/includes/ajax-actions.php 5569
$all_items = apply_filters( 'all_plugins', get_plugins() );