menu_order

Advertisement

Summery Summery

Filters the order of administration menu items.

Syntax Syntax

apply_filters( 'menu_order', array $menu_order )

Description Description

A truthy value must first be passed to the ‘custom_menu_order’ filter for this filter to work. Use the following to enable custom menu ordering:

add_filter( 'custom_menu_order', '__return_true' );

Parameters Parameters

$menu_order

(array) An ordered array of menu items.

Source Source

File: wp-admin/includes/menu.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.