set_url_scheme
set_url_scheme ( $url, $scheme = null )
Parameters:- (string) url Absolute URL that includes a scheme
- (string|null) scheme Optional. Scheme to give $url. Currently 'http', 'https', 'login', 'login_post', 'admin', 'relative', 'rest', 'rpc', or null. Default null.
Returns:- (string) URL with chosen scheme.
Defined at:Change Log: - Introduced in WordPress: 3.4.0
- Deprecated in WordPress: —
Description
Sets the scheme for a URL.