WC_Auth::get_formatted_url
Decode and format a URL.
Method of the class: WC_Auth{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_formatted_url( $url );
- $url(string) (required)
- URL.
WC_Auth::get_formatted_url() WC Auth::get formatted url code WC 10.5.0
protected function get_formatted_url( $url ) {
$url = urldecode( $url );
if ( ! strstr( $url, '://' ) ) {
$url = 'https://' . $url;
}
return $url;
}