Automattic\WooCommerce\Internal\TransientFiles
TransientFilesEngine::get_public_url
Get the public URL of a transient file. The file name is NOT checked for validity or actual existence.
Method of the class: TransientFilesEngine{}
No Hooks.
Returns
String. The public URL of the file.
Usage
$TransientFilesEngine = new TransientFilesEngine(); $TransientFilesEngine->get_public_url( $filename );
- $filename(string) (required)
- The name of the transient file to get the public URL for.
TransientFilesEngine::get_public_url() TransientFilesEngine::get public url code WC 10.5.0
public function get_public_url( string $filename ) {
return $this->legacy_proxy->call_function( 'get_site_url', null, '/wc/file/transient/' . $filename );
}