rest_{$this->post_type}_item_schema

SummerySummery

Filter the post’s schema.

Syntax

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

DescriptionDescription

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

ParametersParameters

$schema

(array) Item schema data.

SourceSource

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

ChangelogChangelog

Changelog
Version Description
5.4.0 Introduced.
Scroll to Top