WC_API_Customers::is_readable()protectedWC 2.1

Check if the current user can read users

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.

WC_API_Customers::is_readable() code WC 8.7.0

protected function is_readable( $post ) {
	return current_user_can( 'list_users' );
}