• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php

WP_REST_Block_Directory_Controller::register_routes()

Method: Registers the necessary REST API routes.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:30

Used by 0 functions | Uses 2 functions

WP_REST_Block_Directory_Controller::get_items_permissions_check()

Method: Checks whether a given request has permission to install and activate plugins.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:54

Used by 0 functions | Uses 4 functions

WP_REST_Block_Directory_Controller::get_items()

Method: Search and retrieve blocks metadata

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:74

Used by 0 functions | Uses 4 functions

WP_REST_Block_Directory_Controller::prepare_item_for_response()

Method: Parse block metadata for a block, and prepare it for an API response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:118

Used by 1 function | Uses 5 functions

WP_REST_Block_Directory_Controller::prepare_links()

Method: Generates a list of links to include in the response for the plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:162

Used by 1 function | Uses 3 functions

WP_REST_Block_Directory_Controller::find_plugin_for_slug()

Method: Finds an installed plugin for the given slug.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:189

Used by 1 function | Uses 1 function

WP_REST_Block_Directory_Controller::get_item_schema()

Method: Retrieves the theme’s schema, conforming to JSON Schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:210

Used by 0 functions | Uses 1 function

WP_REST_Block_Directory_Controller::get_collection_params()

Method: Retrieves the search params for the blocks collection.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:300

Used by 1 function | Uses 4 functions

rest_block_directory_collection_params

Filter Hook: Filters REST API collection parameters for the block directory controller.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:321

Used by 1 function | Uses 0 functions

WP_REST_Block_Directory_Controller

Class: Controller which provides REST endpoint for the blocks.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:17

Used by 0 functions | Uses 1 function

WP_REST_Block_Directory_Controller::__construct()

Method: Constructs the controller.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:22

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry