WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about menu_order

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/menu.php apply_filters 293 /**
* Filters the order of administration menu items.
*
* A truthy value must first be passed to the {@see 'custom_menu_order'} filter
* for this filter to work. Use the following to enable custom menu ordering:
*
* add_filter( 'custom_menu_order', '__return_true' );
*
* @since 2.8.0
*
* @param array $menu_order An ordered array of menu items.
*/

Hook Parameters

Parameter Type Name Description
array $menu_order An ordered array of menu items.