WP_REST_Controller::get_public_item_schema() WordPress Method
The WP_REST_Controller::get_public_item_schema() method returns the publicly accessible schema for a single item.
WP_REST_Controller::get_public_item_schema() #
Retrieves the item’s schema for display / public consumption purposes.
Return
(array) Public item schema data.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
public function get_public_item_schema() { $schema = $this->get_item_schema(); if ( ! empty( $schema['properties'] ) ) { foreach ( $schema['properties'] as &$property ) { unset( $property['arg_options'] ); } } return $schema; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |