WP_REST_Controller::get_public_item_schema(): array

Retrieves the item’s schema for display / public consumption purposes.


Return

array Public item schema data.


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php. View all references

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;
}


Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

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