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



nav_menu_items_{$post_type_name} › WordPress过滤钩子

Since4.6.0
已弃用n/a
› $posts = apply_filters(
参数: (3)
  • () posts The posts for the current post type. Mostly `WP_Post` objects, but can also contain "fake" post objects to represent other menu items.
    Required: Yes
  • () args An array of `WP_Query` arguments.
    Required: Yes
  • () post_type The current post type object for this menu item meta box.
    Required: Yes
查看:
  • WP_Query::query()
定义在:
文档:

Filters the posts displayed in the 'View All' tab of the current post type's menu items meta box.

The dynamic portion of the hook name, `$post_type_name`, refers to the slug of the current post type. Possible hook names include: - `nav_menu_items_post` - `nav_menu_items_page`




源码

$posts = apply_filters(