rest_{$this->post_type}_item_schema

Advertisement

Summery Summery

Filter the post’s schema.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$schema

(array) Item schema data.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.