WC_API_Resource::is_readable() protected WC 2.1
Checks if the given post is readable by the current user
{} It's a method of the class: WC_API_Resource{}
No Hooks.
Return
true/false.
Usage
// protected - for code of main (parent) or child class $result = $this->is_readable( $post );
$post *(WP_Post | int) (required)* |
---|
Notes
- See: WC_API_Resource::check_permission()
Changelog
Since 2.1 | Introduced. |
Code of WC_API_Resource::is_readable() WC API Resource::is readable WC 5.0.0
protected function is_readable( $post ) {
return $this->check_permission( $post, 'read' );
}