WordPress at Your Fingertips
function is not described

WC_Auth::get_formatted_url() protected WC 1.0

Decode and format a URL.

{} It's a method of the class: WC_Auth{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_formatted_url( $url );
$url(string) (required)
URL.

Code of WC_Auth::get_formatted_url() WC 5.8.0

protected function get_formatted_url( $url ) {
	$url = urldecode( $url );

	if ( ! strstr( $url, '://' ) ) {
		$url = 'https://' . $url;
	}

	return $url;
}