Filters the post’s schema.
Description
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_schemarest_page_item_schemarest_attachment_item_schema
Parameters
$schemaarray- Item schema data.
Source
$schema = apply_filters( "rest_{$this->post_type}_item_schema", $schema );
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.