apply_filters( 'show_advanced_plugins', bool $show, string $type )
- Since
- 3.0.0
Filters whether to display the advanced plugins list table.
Description
There are two types of advanced plugins - must-use and drop-ins - which can be used in a single site or Multisite network.
The $type parameter allows you to differentiate between the type of advanced plugins to filter the display of. Contexts include 'mustuse' and 'dropins'.
Compatibility
- WordPress
- since 3.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$showbool- Whether to show the advanced plugins for the specified plugin type. Default true.
$typestring- The plugin type. Accepts 'mustuse', 'dropins'.
Where this hook fires · 2
wp-admin/includes/class-wp-plugins-list-table.php:144WP_Plugins_List_Table::prepare_items()wp-admin/includes/class-wp-plugins-list-table.php:149WP_Plugins_List_Table::prepare_items()
Source code
* @since 3.0.0 * * @param bool $show Whether to show the advanced plugins for the specified * plugin type. Default true. * @param string $type The plugin type. Accepts 'mustuse', 'dropins'. */ if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) { $plugins['mustuse'] = get_mu_plugins(); } /** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */ if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) { $plugins['dropins'] = get_dropins();Changelog
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.