Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileExporter::get_filename │ private │ WC 1.0

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

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

Хуков нет.

Возвращает

string.

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

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

Код FileExporter::get_filename() WC 11.2.2

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

	return basename( $this->path );
}