Retrieves the block’s schema, conforming to JSON Schema.
WP_REST_Blocks_Controller::filter_response_by_context
Filters a response based on the context defined in the schema.
WP_REST_Blocks_Controller::check_read_permission
Checks if a block can be read.
WP_REST_Blocks_Controller
Controller which provides a REST endpoint for the editor to read, create, edit and delete reusable blocks. Blocks are stored as posts with the wp_block post type.
Advertisement
WP_REST_Block_Renderer_Controller::get_item
Returns block output from block’s registered render_callback.
WP_REST_Block_Renderer_Controller::get_item_schema
Retrieves block’s output schema, conforming to JSON Schema.
WP_REST_Block_Renderer_Controller::get_item_permissions_check
Checks if a given request has access to read blocks.
WP_REST_Block_Renderer_Controller::register_routes
Registers the necessary REST API routes, one for each dynamic block.
Advertisement
WP_REST_Block_Renderer_Controller::__construct
Constructs the controller.
WP_REST_Block_Renderer_Controller
Controller which provides REST endpoint for rendering a block.
WP_REST_Autosaves_Controller::get_collection_params
Retrieves the query params for the autosaves collection.
rest_prepare_autosave
Filters a revision returned from the API.
Advertisement
WP_REST_Autosaves_Controller::prepare_item_for_response
Prepares the revision for the REST response.
WP_REST_Autosaves_Controller::get_item_schema
Retrieves the autosave’s schema, conforming to JSON Schema.
WP_REST_Autosaves_Controller::create_post_autosave
Creates autosave for the specified post.