WordPress at a glance
function is not described

WP_REST_Controller::get_public_item_schema() public WP 4.7.0

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

It's a method of the class: WP_REST_Controller{}

No Hooks.

Return

Array. Public item schema data.

Usage

$WP_REST_Controller = new WP_REST_Controller();
$WP_REST_Controller->get_public_item_schema();

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Controller::get_public_item_schema() WP 5.5.1

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