WP_REST_Settings_Controller::prepare_value

SummerySummery

Prepares a value for output based off a schema array.

Syntax

WP_REST_Settings_Controller::prepare_value( mixed $value, array $schema )

ParametersParameters

$value

(mixed) (Required) Value to prepare.

$schema

(array) (Required) Schema to match.

ReturnReturn

(mixed) The prepared value.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top