[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Reusable blocks REST API: WP_REST_Blocks_Controller class
File Size: | 92 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_REST_Blocks_Controller:: (3 methods):
check_read_permission()
filter_response_by_context()
get_item_schema()
Class: WP_REST_Blocks_Controller - X-Ref
Controller which provides a REST endpoint for the editor to read, create,check_read_permission( $post ) X-Ref |
Checks if a block can be read. param: WP_Post $post Post object that backs the block. return: bool Whether the block can be read. since: 5.0.0 |
filter_response_by_context( $data, $context ) X-Ref |
Filters a response based on the context defined in the schema. param: array $data Response data to filter. param: string $context Context defined in the schema. return: array Filtered response. since: 5.0.0 |
get_item_schema() X-Ref |
Retrieves the block's schema, conforming to JSON Schema. return: array Item schema data. since: 5.0.0 |
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |