install_themes_nonmenu_tabs

install_themes_nonmenu_tabs

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.4

apply_filters('install_themes_nonmenu_tabs') is found 1 times:

  • /wp-admin/includes/class-wp-theme-install-list-table.php line 81
    		 *
    		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on
    		 *                               the Install Themes screen.
    		 */
    		$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );
    
    		// If a non-valid menu tab has been selected, And it's not a non-menu action.
    		if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) {
    			$tab = key( $tabs );
    		}