wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



menu_order › Filtr WordPress Hooks

Od2.8.0
Przestarzałyn/a
apply_filters( 'menu_order', $menu_order )
Parametry:
  • (array) $menu_order An ordered array of menu items.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the order of administration menu items.

A truthy value must first be passed to the {@see 'custom_menu_order'} filter for this filter to work. Use the following to enable custom menu ordering:

add_filter( 'custom_menu_order', '__return_true' );




Źródło

$menu_order = apply_filters( 'menu_order', $menu_order );