WP_REST_Plugins_Controller::__construct()
Plugins controller constructor.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
public function __construct() { $this->namespace = 'wp/v2'; $this->rest_base = 'plugins'; }
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_plugins_controller/__construct