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
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

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

WP_REST_Block_Types_Controller::prepare_links()

Method: Prepares links for the request.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:350

Used by 1 function | Uses 2 functions

WP_REST_Block_Types_Controller::get_item_schema()

Method: Retrieves the block type’ schema, conforming to JSON Schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:385

Used by 1 function | Uses 1 function

WP_REST_Block_Types_Controller::get_collection_params()

Method: Retrieves the query params for collections.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:750

Used by 2 functions | Uses 1 function

WP_REST_Block_Types_Controller::get_block()

Method: Get the block, if the name is valid.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:207

Used by 2 functions | Uses 2 functions

WP_REST_Block_Types_Controller::get_item()

Method: Retrieves a specific block type.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:224

Used by 0 functions | Uses 4 functions

WP_REST_Block_Types_Controller::prepare_item_for_response()

Method: Prepares a block type object for serialization.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:245

Used by 2 functions | Uses 7 functions

rest_prepare_block_type

Filter Hook: Filters a block type returned from the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:339

Used by 1 function | Uses 0 functions

WP_REST_Block_Types_Controller

Class: Core class used to access block types via the REST API.

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

Used by 0 functions | Uses 1 function

WP_REST_Block_Types_Controller::__construct()

Method: Constructor.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:40

Used by 1 function | Uses 2 functions

WP_REST_Block_Types_Controller::register_routes()

Method: Registers the routes for block types.

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

Used by 0 functions | Uses 3 functions

WP_REST_Block_Types_Controller::get_items_permissions_check()

Method: Checks whether a given request has permission to read post block types.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:119

Used by 0 functions | Uses 1 function

WP_REST_Block_Types_Controller::get_items()

Method: Retrieves all post block types, depending on user context.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:131

Used by 0 functions | Uses 3 functions

WP_REST_Block_Types_Controller::get_item_permissions_check()

Method: Checks if a given request has access to read a block type.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:165

Used by 0 functions | Uses 3 functions

WP_REST_Block_Types_Controller::check_read_permission()

Method: Checks whether a given block type should be visible.

Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:186

Used by 2 functions | Uses 5 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