Checks if a global style can be read.
Parameters
$post
WP_Postrequired- Post object.
Source
public function check_read_permission( $post ) {
return current_user_can( 'read_post', $post->ID );
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
Checks if a global style can be read.
$post
WP_Postrequiredpublic function check_read_permission( $post ) {
return current_user_can( 'read_post', $post->ID );
}
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.