install_plugins_nonmenu_tabs filter-hookWP 2.7.0

Filters tabs not associated with a menu item on the Add Plugins screen.

Usage

add_filter( 'install_plugins_nonmenu_tabs', 'wp_kama_install_plugins_nonmenu_tabs_filter' );

/**
 * Function for `install_plugins_nonmenu_tabs` filter-hook.
 * 
 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Add Plugins screen.
 *
 * @return string[]
 */
function wp_kama_install_plugins_nonmenu_tabs_filter( $nonmenu_tabs ){

	// filter...
	return $nonmenu_tabs;
}
$nonmenu_tabs(string[])
The tabs that don't have a menu item on the Add Plugins screen.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

WP_Plugin_Install_List_Table::prepare_items()
install_plugins_nonmenu_tabs
wp-admin/includes/class-wp-plugin-install-list-table.php 143
$nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );

Where the hook is used in WordPress

Usage not found.