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

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