install_plugins_nonmenu_tabs

install_plugins_nonmenu_tabs

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('install_plugins_nonmenu_tabs') is found 1 times:

  • /wp-admin/includes/class-wp-plugin-install-list-table.php line 144
    		 * @since 2.7.0
    		 *
    		 * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Add Plugins screen.
    		 */
    		$nonmenu_tabs = apply_filters( 'install_plugins_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 );
    		}