wpseek.com
WordPress开发者和主题制作者的搜索引擎



nav_menu_meta_box_object › WordPress过滤钩子

Since3.0.0
已弃用n/a
apply_filters( 'nav_menu_meta_box_object', $post_type )
参数:
  • (WP_Post_Type|false) $post_type The current object to add a menu items meta box for.
    Required: Yes
定义在:
文档:

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.





源码

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