WP_REST_Controller::get_public_item_schema

Advertisement

Summery Summery

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

Syntax Syntax

WP_REST_Controller::get_public_item_schema()

Return Return

(array) Public item schema data.

Source Source

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

				'type'              => 'integer',
				'default'           => 1,
				'sanitize_callback' => 'absint',
				'validate_callback' => 'rest_validate_request_arg',
				'minimum'           => 1,
			),
			'per_page' => array(
				'description'       => __( 'Maximum number of items to be returned in result set.' ),
				'type'              => 'integer',
				'default'           => 10,
				'minimum'           => 1,
				'maximum'           => 100,

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.