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

Filters the post’s schema.

Description Description

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

Top ↑

Parameters Parameters


(array) Item schema data.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
5.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.