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