Filter hook 'menu_order'

in WP Core File wp-admin/includes/menu.php at line 306

Description

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' );

Occurrences

Filename Line Number
wp-admin/includes/menu.php 306

Parameters

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

PHP Doc

/**
	 * 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.
	 */