WC_API_Customers::is_readable( int|WP_Post $post )
Check if the current user can read users
Contents
Description Description
See also See also
Parameters Parameters
- $post
-
(Required) unused
Return Return
(bool) true if the current user can read users, false otherwise
Source Source
File: includes/legacy/api/v2/class-wc-api-customers.php
protected function is_readable( $post ) { return current_user_can( 'list_users' ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |