WC_API_Resource::is_readable()protectedWC 2.1

Checks if the given post is readable by the current user

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

Хуков нет.

Возвращает

true|false.

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

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

Заметки

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

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

Код WC_API_Resource::is_readable() WC 8.7.0

protected function is_readable( $post ) {

	return $this->check_permission( $post, 'read' );
}