install_themes_nonmenu_tabs filter-hookWP 2.8.0

Filters tabs not associated with a menu item on the Install Themes screen.

Usage

add_filter( 'install_themes_nonmenu_tabs', 'wp_kama_install_themes_nonmenu_tabs_filter' );

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

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

Changelog

Since 2.8.0 Introduced.

Where the hook is called

WP_Theme_Install_List_Table::prepare_items()
install_themes_nonmenu_tabs
wp-admin/includes/class-wp-theme-install-list-table.php 81
$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );

Where the hook is used in WordPress

Usage not found.