WP_REST_Comments_Controller::check_read_post_permission

Advertisement

Summery Summery

Checks if the post can be read.

Syntax Syntax

WP_REST_Comments_Controller::check_read_post_permission( WP_Post $post, WP_REST_Request $request )

Description Description

Correctly handles posts with the inherit status.

Parameters Parameters

$post

(WP_Post) (Required) Post object.

$request

(WP_REST_Request) (Required) Request data to check.

Return Return

(bool) Whether post can be read.

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.