apply_filters( ‘custom_menu_order’, bool $custom )

Filters whether to enable custom ordering of the administration menu.

Description

See the ‘menu_order’ filter for reordering menu items.

Parameters

$custombool
Whether custom ordering is enabled. Default false.

Source

if ( apply_filters( 'custom_menu_order', false ) ) {

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes