wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



nav_menu_meta_box_object › Les Filtres WordPress

Depuis3.0.0
Dépréciéen/a
apply_filters( 'nav_menu_meta_box_object', $post_type )
Paramètres:
  • (WP_Post_Type|false) $post_type The current object to add a menu items meta box for.
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether a menu items meta box will be added for the current object type.

If a falsey value is returned instead of an object, the menu items meta box for the current meta box object will not be added.





Source

$post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );