WP_REST_Block_Directory_Controller
Controller which provides REST endpoint for the blocks.
Controller which provides REST endpoint for the blocks.
Constructs the controller.
Finds an installed plugin for the given slug.
Retrieves the search params for the blocks collection.
Retrieves the theme’s schema, conforming to JSON Schema.
Search and retrieve blocks metadata
Checks whether a given request has permission to install and activate plugins.
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.