Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php

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

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 6 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:167

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:194

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:215

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:305

Used by 1 function | Uses 3 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:326

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • 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
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry