WP_REST_Block_Patterns_Controller::__construct() WordPress Method
This method initializes the class and sets its properties.
WP_REST_Block_Patterns_Controller::__construct() #
Constructs the controller.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
public function __construct() { $this->namespace = 'wp/v2'; $this->rest_base = 'block-patterns/patterns'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |