Uses
Uses | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php: WP_REST_Block_Types_Controller::check_read_permission() | Checks whether a given block type should be visible. |
Checks whether a given request has permission to read post block types.
(WP_REST_Request) (Required) Full details about the request.
(WP_Error|bool) True if the request has read access, WP_Error object otherwise.
File: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
public function get_items_permissions_check( $request ) { return $this->check_read_permission(); }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_block_types_controller/get_items_permissions_check