Automattic\WooCommerce\Internal\TransientFiles

TransientFilesEngine::get_public_url()publicWC 1.0

Get the public URL of a transient file. The file name is NOT checked for validity or actual existence.

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

Хуков нет.

Возвращает

Строку. The public URL of the file.

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

$TransientFilesEngine = new TransientFilesEngine();
$TransientFilesEngine->get_public_url( $filename );
$filename(строка) (обязательный)
The name of the transient file to get the public URL for.

Код TransientFilesEngine::get_public_url() WC 9.6.1

public function get_public_url( string $filename ) {
	return $this->legacy_proxy->call_function( 'get_site_url', null, '/wc/file/transient/' . $filename );
}