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.
Return
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 9.5.1
public function get_public_url( string $filename ) { return $this->legacy_proxy->call_function( 'get_site_url', null, '/wc/file/transient/' . $filename ); }