WordPress at Your Fingertips
filter is not described

rest_(post_type)_item_schema filter-hook . WP 5.4.0

Filters the post's schema.

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


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

	return $schema;
Item schema data.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.