WP_REST_Global_Styles_Controller::check_read_permission() – Checks if a global style can be read.
You appear to be a bot. Output may be restricted
Description
Checks if a global style can be read.
Usage
$bool = WP_REST_Global_Styles_Controller::check_read_permission( $post );
Parameters
- $post
- ( WP_Post ) required – Post object.
Returns
bool Whether the post can be read.
Source
File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
Lines:
1 to 3 of 3
protected function check_read_permission( $post ) { return current_user_can( 'read_post', $post->ID ); }