WC_API_Resource::is_readable( WP_Post|int $post )
Checks if the given post is readable by the current user
Contents
Description Description
See also See also
Parameters Parameters
- $post
-
(Required)
Return Return
(bool)
Source Source
File: includes/legacy/api/v2/class-wc-api-resource.php
protected function is_readable( $post ) { return $this->check_permission( $post, 'read' ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |