WP_REST_Global_Styles_Controller::__construct() WordPress Method
The WP_REST_Global_Styles_Controller::__construct() function initializes the class and sets up the object. It also sets up the global $wp_rest_global_styles object, which is used to manage the global styles for the website.
WP_REST_Global_Styles_Controller::__construct() #
Constructor.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
public function __construct() {
$this->namespace = 'wp/v2';
$this->rest_base = 'global-styles';
$this->post_type = 'wp_global_styles';
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |