WP_REST_Controller::get_context_param

SummerySummery

Retrieves the magical context param.

Syntax

WP_REST_Controller::get_context_param( array $args = array() )

DescriptionDescription

Ensures consistent descriptions between endpoints, and populates enum from schema.

ParametersParameters

$args

(array) (Optional) Additional arguments for context parameter.

Default value: array()

ReturnReturn

(array) Context parameter details.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top