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:
  • 4: .

Description

Sets the scheme for a URL.

Related Functions

set_current_screen, get_current_theme, get_current_screen, get_usermeta, get_theme

Top Google Results

User discussions

wpseek mobile