WP_REST_Block_Directory_Controller::prepare_item_for_response()
Parse block metadata for a block, and prepare it for an API response.
Welcome to the WPPaste WordPress Method index. This page contains a an alphabetically sorted list of methods that are available for use in WordPress. Each method has a brief description of what it does and how it can be used. To find out more about a particular method, simply click on the method name.
Parse block metadata for a block, and prepare it for an API response.
Generates a list of links to include in the response for the plugin.
Registers the necessary REST API routes.
Constructs the controller.
Retrieves the block pattern category schema, conforming to JSON Schema.
Retrieves all block pattern categories.
Checks whether a given request has permission to read block patterns.
Prepare a raw block pattern category before it gets output in a REST API response.
Registers the routes for the objects of the controller.
Constructs the controller.