custom_menu_order filter-hookWP 2.8.0

Filters whether to enable custom ordering of the administration menu.

See the menu_order filter for reordering menu items.

Usage

add_filter( 'custom_menu_order', 'wp_kama_custom_menu_order_filter' );

/**
 * Function for `custom_menu_order` filter-hook.
 * 
 * @param bool $custom Whether custom ordering is enabled.
 *
 * @return bool
 */
function wp_kama_custom_menu_order_filter( $custom ){

	// filter...
	return $custom;
}
$custom(true|false)
Whether custom ordering is enabled.
Default: false

Changelog

Since 2.8.0 Introduced.

Where the hook is called

In file: /wp-admin/includes/menu.php
custom_menu_order
wp-admin/includes/menu.php 284
if ( apply_filters( 'custom_menu_order', false ) ) {

Where the hook is used in WordPress

Usage not found.