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