install_plugins_tabs filter-hookWP 2.7.0

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

WP_Plugin_Install_List_Table::prepare_items()
install_plugins_tabs
wp-admin/includes/class-wp-plugin-install-list-table.php 133
$tabs = apply_filters( 'install_plugins_tabs', $tabs );

Where the hook is used in WordPress

Usage not found.