WC_API_Customers::is_readable( int|WP_Post $post )

Check if the current user can read users


Description Description

See also See also


Top ↑

Parameters Parameters

$post

(Required) unused


Top ↑

Return Return

(bool) true if the current user can read users, false otherwise


Top ↑

Source Source

File: includes/legacy/api/v2/class-wc-api-customers.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.