Automattic\WooCommerce\Internal\Admin\Logging\FileV2
FileController::get_filename_timestamp
Get the creation timestamp encoded in a file's name, or 0 if it doesn't use the standard format.
Метод класса: FileController{}
Хуков нет.
Возвращает
int.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_filename_timestamp( $file ): int;
- $file(File) (обязательный)
- The file to get the timestamp from.
Код FileController::get_filename_timestamp() FileController::get filename timestamp WC 11.2.2
private function get_filename_timestamp( File $file ): int {
return $file->has_standard_filename() ? $file->get_created_timestamp() : 0;
}