add_menu_classes

add_menu_classes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('add_menu_classes') is found 1 times:

  • /wp-admin/includes/menu.php line 270
    	 * @since 2.7.0
    	 *
    	 * @param array $menu Associative array of administration menu items.
    	 */
    	return apply_filters( 'add_menu_classes', $menu );
    }
    
    uksort( $menu, 'strnatcasecmp' ); // Make it all pretty.
    
    /**
     * Filters whether to enable custom ordering of the administration menu.
    

See this hook used in plugins: