install_plugins_tabs
Filters the tabs shown on the Add Plugins screen.
Usage
add_filter( 'install_plugins_tabs', 'wp_kama_install_plugins_tabs_filter' );
/**
* Function for `install_plugins_tabs` filter-hook.
*
* @param string[] $tabs The tabs shown on the Add Plugins screen.
*
* @return string[]
*/
function wp_kama_install_plugins_tabs_filter( $tabs ){
// filter...
return $tabs;
}
- $tabs(string[])
- The tabs shown on the Add Plugins screen.
Default: include 'featured', 'popular', 'recommended', 'favorites', and 'upload'
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
install_plugins_tabs
wp-admin/includes/class-wp-plugin-install-list-table.php 134
$tabs = apply_filters( 'install_plugins_tabs', $tabs );