Filter hook 'custom_menu_order'

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

Description

Filters whether to enable custom ordering of the administration menu. See the {@see 'menu_order'} filter for reordering menu items.

Occurrences

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

Parameters

Type Name Description
bool $custom Whether custom ordering is enabled. Default false.

Usage Examples

Example 1

add_filter( 'custom_menu_order', '__return_true'

PHP Doc

/**
 * Filters whether to enable custom ordering of the administration menu.
 *
 * See the {@see 'menu_order'} filter for reordering menu items.
 *
 * @since 2.8.0
 *
 * @param bool $custom Whether custom ordering is enabled. Default false.
 */