PHP Class Papi_REST_API_Settings, papi

Afficher le fichier Open project: wp-papi/papi

Protected Properties

Свойство Type Description
$entries Papi_Post_Store The post store class.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

REST API Settings construct.
public __construct ( )

get_setting() public méthode

Get setting value for a property.
public get_setting ( string $key, string $value ) : mixed
$key string
$value string
Résultat mixed

pre_get_setting() public méthode

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
Résultat mixed

prepare_response() public méthode

Prepare settings response.
public prepare_response ( WP_HTTP_Response $response ) : array
$response WP_HTTP_Response
Résultat array

register() public méthode

Register options properties.
public register ( )

Property Details

$entries protected_oe property

The post store class.
protected Papi_Post_Store $entries
Résultat Papi_Post_Store