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



rest_{$this->post_type}_item_schema › Filtr WordPress Hooks

Od5.4.0
Przestarzałyn/a
› apply_filters( "rest_{$this->post_type}_item_schema", $schema )
Parametry:
  • () schema Item schema data.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the post's schema.

The dynamic portion of the filter, `$this->post_type`, refers to the post type slug for the controller. Possible hook names include: - `rest_post_item_schema` - `rest_page_item_schema` - `rest_attachment_item_schema`




Źródło

$schema = apply_filters( "rest_{$this->post_type}_item_schema", $schema );