WP_REST_Posts_Controller::check_read_permission

SummerySummery

Checks if a post can be read.

Syntax

WP_REST_Posts_Controller::check_read_permission( WP_Post $post )

DescriptionDescription

Correctly handles posts with the inherit status.

ParametersParameters

$post

(WP_Post) (Required) Post object.

ReturnReturn

(bool) Whether the post can be read.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top