Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::get_file_id
Get the file's public ID.
Метод класса: File{}
Хуков нет.
Возвращает
Строку.
Использование
$File = new File(); $File->get_file_id(): string;
Код File::get_file_id() File::get file id WC 10.7.0
public function get_file_id(): string {
$created = 0;
if ( $this->has_standard_filename() ) {
$created = $this->get_created_timestamp();
}
$file_id = static::generate_file_id(
$this->get_source(),
$this->get_rotation(),
$created
);
return $file_id;
}