Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::get_modified_timestamp()
Get the time of the last modification of the file, as a Unix timestamp. Or false if the file isn't readable.
Метод класса: File{}
Хуков нет.
Возвращает
int|false
.
Использование
$File = new File(); $File->get_modified_timestamp();
Код File::get_modified_timestamp() File::get modified timestamp WC 9.7.1
public function get_modified_timestamp() { try { $filesystem = FilesystemUtil::get_wp_filesystem(); $timestamp = $filesystem->mtime( $this->path ); } catch ( Exception $exception ) { return false; } return $timestamp; }