WC_API_Customers::is_readable()
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
Заметки
- Смотрите: WC_API_Resource::is_readable()
Список изменений
С версии 2.1 | Введена. |
Код WC_API_Customers::is_readable() WC API Customers::is readable WC 7.7.0
protected function is_readable( $post ) { return current_user_can( 'list_users' ); }