WP_REST_Sidebars_Controller::__construct() WordPress Method
The WP_REST_Sidebars_Controller::__construct() function initializes the Sidebars REST API controller.
WP_REST_Sidebars_Controller::__construct() #
Sidebars controller constructor.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
public function __construct() {
$this->namespace = 'wp/v2';
$this->rest_base = 'sidebars';
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |