W3cubDocs

/WordPress

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

Filter the post’s schema.

Description

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

Parameters

$schema

(array) Item schema data.

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

View on Trac

Changelog

Version Description
5.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_this-post_type_item_schema