WC_API_Customers::is_readable()protectedWC 2.1

Check if the current user can read users

Метод класса: WC_API_Customers{}

Хуков нет.

Возвращает

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

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_readable( $post );
$post(int|WP_Post) (обязательный)
unused

Заметки

Список изменений

С версии 2.1 Введена.

Код WC_API_Customers::is_readable() WC 8.7.0

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