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



nav_menu_items_{$post_type_name} › Filtr WordPress Hooks

Od4.6.0
Przestarzałyn/a
› $posts = apply_filters(
Parametry: (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.
    Wymagane: Tak
  • () args An array of `WP_Query` arguments.
    Wymagane: Tak
  • () post_type The current post type object for this menu item meta box.
    Wymagane: Tak
Zobacz:
  • WP_Query::query()
Zdefiniowane na:
Codex:

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`




Źródło

$posts = apply_filters(