WordPress at Your Fingertips
function is not described

WC_API_Customers::is_readable() protected WC 2.1

Check if the current user can read users

{} It's a method of the class: WC_API_Customers{}

No Hooks.

Return

true|false. true if the current user can read users, false otherwise

Usage

// protected - for code of main (parent) or child class
$result = $this->is_readable( $post );
$post(int|WP_Post) (required)
unused

Notes

Changelog

Since 2.1 Introduced.

Code of WC_API_Customers::is_readable() WC 5.6.0

protected function is_readable( $post ) {

	return current_user_can( 'list_users' );
}