wphooks.info - menu_order

menu_order

The hook occurs in the following file:

wp-admin/includes/menu.php:
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
	 *
	 * 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.
	 */
	$menu_order = apply_filters( 'menu_order', $menu_order );
	$menu_order = array_flip($menu_order);
	$default_menu_order = array_flip($default_menu_order);

	/**
	 *
	 * @global array $menu_order
	 * @global array $default_menu_order
	 *
	 * @param array $a