Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::get_file_idpublicWC 1.0

Get the file's public ID.

Method of the class: File{}

No Hooks.

Returns

String.

Usage

$File = new File();
$File->get_file_id(): string;

File::get_file_id() code WC 10.4.3

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;
}