all_plugins
This is a WordPress - all_plugins hook. The plugin just uses it.
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.
Where the hook is called
all_plugins
woocommerce/includes/admin/helper/class-wc-helper.php 2607
return array_keys( (array) apply_filters( 'all_plugins', get_plugins() ) );
Where the hook is used in WooCommerce
woocommerce/src/Internal/Features/FeaturesController.php 170
add_filter( 'all_plugins', array( $this, 'filter_plugins_list' ), 10, 1 );
woocommerce/src/Packages.php 81
add_filter( 'all_plugins', array( __CLASS__, 'mark_merged_plugins_as_pending_update' ), 10, 1 );