Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::is_readable()
Check if the file represented by the class instance is a file and is readable.
Метод класса: File{}
Хуков нет.
Возвращает
true|false
.
Использование
$File = new File(); $File->is_readable(): bool;
Код File::is_readable() File::is readable WC 9.7.1
public function is_readable(): bool { try { $filesystem = FilesystemUtil::get_wp_filesystem(); $is_readable = $filesystem->is_file( $this->path ) && $filesystem->is_readable( $this->path ); } catch ( Exception $exception ) { return false; } return $is_readable; }