PHP Класс Papi_REST_API_Settings, papi

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entries Papi_Post_Store The post store class.

Открытые методы

Метод Описание
__construct ( ) REST API Settings construct.
get_setting ( string $key, string $value ) : mixed Get setting value for a property.
pre_get_setting ( mixed $value ) : mixed Setup request after callbacks filter so it's only runs on settings endpoint.
prepare_response ( WP_HTTP_Response $response ) : array Prepare settings response.
register ( ) Register options properties.

Описание методов

__construct() публичный Метод

REST API Settings construct.
public __construct ( )

get_setting() публичный Метод

Get setting value for a property.
public get_setting ( string $key, string $value ) : mixed
$key string
$value string
Результат mixed

pre_get_setting() публичный Метод

When the filter is added the rest_pre_get_setting will be removed since it's not used to anything good.
public pre_get_setting ( mixed $value ) : mixed
$value mixed
Результат mixed

prepare_response() публичный Метод

Prepare settings response.
public prepare_response ( WP_HTTP_Response $response ) : array
$response WP_HTTP_Response
Результат array

register() публичный Метод

Register options properties.
public register ( )

Описание свойств

$entries защищенное свойство

The post store class.
protected Papi_Post_Store $entries
Результат Papi_Post_Store