WP_REST_Blocks_Controller::check_read_permission

SummerySummery

Checks if a block can be read.

Syntax

WP_REST_Blocks_Controller::check_read_permission( WP_Post $post )

ParametersParameters

$post

(WP_Post) (Required) Post object that backs the block.

ReturnReturn

(bool) Whether the block can be read.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top