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



rest_{$this->post_type}_item_schema › WordPress过滤钩子

Since5.4.0
已弃用n/a
› apply_filters( "rest_{$this->post_type}_item_schema", $schema )
参数:
  • () schema Item schema data.
    Required: Yes
定义在:
文档:

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`




源码

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