WPDev.one
Core Class

WP_REST_Global_Styles_Revisions_Controller

class WP_REST_Global_Styles_Revisions_Controller // Constructor: function Object() { [native code] }

Core class used to access global styles revisions via the REST API.

Methods 7 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $parent_post_type: mixed
register_routes()
void

Registers the controller's routes.

get_decoded_global_styles_json()
(Array

Returns decoded JSON from post content string,

Parameters: $raw_json: mixed
get_items()
(WP_REST_Response

Returns paginated revisions of the given global styles config custom post type.

Parameters: $request: mixed
prepare_item_for_response()
(WP_REST_Response

Prepares the revision for the REST response.

Parameters: $post: mixed, $request: mixed
get_item_schema()
array

Retrieves the revision's schema, conforming to JSON Schema.

get_collection_params()
array

Retrieves the query params for collections.

Properties

Property / Type Description
$parent_controller
mixed
public
No description available.
$parent_base
mixed
public
No description available.
$parent_post_type
mixed
public
No description available.

Class Information

Since Version
6.3.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
Advertisement