Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileExporter::get_filename()privateWC 1.0

Get the name of the file that will be sent to the browser.

Метод класса: FileExporter{}

Хуков нет.

Возвращает

Строку.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_filename(): string;

Код FileExporter::get_filename() WC 9.7.1

private function get_filename(): string {
	if ( $this->alternate_filename ) {
		return $this->alternate_filename;
	}

	return basename( $this->path );
}