WordPress at a glance
filter is not described

rest_(post_type)_item_schema filter-hook . WP 5.4.0

Filter the post's schema.

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

Usage

add_filter( 'rest_(post_type)_item_schema', 'filter_function_name_1445' );
function filter_function_name_1445( $schema ){
	// filter...

	return $schema;
}
$schema(array)
Item schema data.

Changelog

Since 5.4.0 Introduced.

Where the hook is called

WP_REST_Posts_Controller::get_item_schema()
rest_(post_type)_item_schema
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 2422
$schema = apply_filters( "rest_{$this->post_type}_item_schema", $schema );

Where in WP core the hook is used

Usage not found!