custom_menu_order WordPress Filter Hook

The custom_menu_order hook allows you to specify the order in which your menus will appear on your site. This can be useful if you want to change the order of your menus without having to manually edit the code.

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.


Top ↑

Parameters

$custom

(bool)Whether custom ordering is enabled. Default false.


Top ↑

Source

File: wp-admin/includes/menu.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.