A WordPress-centric search engine for devs and theme authors



rest_{$this->post_type}_item_schema ›

Since5.4.0
Deprecatedn/a
apply_filters( "rest_{$this->post_type}_item_schema", $schema )
Parameters:
  • (array) $schema Item schema data.
    Required: Yes
Defined at:
Codex:

Filters the post's schema.

The dynamic portion of the filter, $this->post_type, refers to the post type slug for the controller.





Source

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