Core Class
View Source on Trac ↗
Core Class
WP_REST_Blocks_Controller
class WP_REST_Blocks_Controller
// Constructor: function Object() { [native code] } Controller which provides a REST endpoint for the editor to read, create,
Methods 3 methods
| Method / Return | Description |
|---|---|
| check_read_permission() bool | Checks if a pattern can be read.
Parameters: $post: mixed |
| filter_response_by_context() array | Filters a response based on the context defined in the schema.
Parameters: $data: mixed, $context: mixed |
| get_item_schema() array | Retrieves the pattern's schema, conforming to JSON Schema. |
Class Information
Since Version
5.0.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
Advertisement