A truthy value must first be passed to the 'custom_menu_order' filter for this filter to work. Use the following to enable custom menu ordering: add_filter( 'custom_menu_order', '__return_true' );
300*add_filter('custom_menu_order','__return_true');301*302* @since 2.8.0303*304* @param array$menu_order An ordered array of menu items.305*/306$menu_order=apply_filters('menu_order',$menu_order);307$menu_order=array_flip($menu_order);308309$default_menu_order=array_flip($default_menu_order);310311/**312* @globalarray$menu_order
History
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.