Filters whether to enable custom ordering of the administration menu.
Description
See the ‘menu_order’ filter for reordering menu items.
Parameters
$custom
bool- Whether custom ordering is enabled. Default false.
Source
if ( apply_filters( 'custom_menu_order', false ) ) {
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Example migrated from Codex:
The following code below groups Dashboard/Posts/Pages/Comments together at the top of the dashboard menu.
If you have a custom post type that you want to add to the group, use the format
edit.php?post_type=YOURPOSTTYPENAME