WC_Auth::get_formatted_url( string $url )

Decode and format a URL.


Description Description


Parameters Parameters

$url

(Required) URL.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-auth.php

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

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

		return $url;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.