HTTP/2 301
server: nginx
date: Fri, 26 Dec 2025 22:14:30 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/custom_menu_order/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Fri, 26 Dec 2025 22:14:31 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
custom_menu_order – Hook | Developer.WordPress.org
apply_filters( ‘custom_menu_order’, bool $custom )
Filters whether to enable custom ordering of the administration menu.
$customboolWhether custom ordering is enabled. Default false.
| 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