custom_menu_order

custom_menu_order

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

See hook in core

Displaying hooks found in version: wordpress-6.5.3

do_action('custom_menu_order') is found 1 times:

  • /wp-admin/includes/menu.php line 284
     * @since 2.8.0
     *
     * @param bool $custom Whether custom ordering is enabled. Default false.
     */
    if ( apply_filters( 'custom_menu_order', false ) ) {
    	$menu_order = array();
    
    	foreach ( $menu as $menu_item ) {
    		$menu_order[] = $menu_item[2];
    	}
    	unset( $menu_item );
    

See this hook used in plugins: