2020-05-01 / 4134阅 / 悠然
Retrieves the URL for a given site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.
Returns the ‘site_url’ option with the appropriate protocol, ‘https’ if is_ssl() and ‘http’ otherwise. If $scheme is ‘http’ or ‘https’, is_ssl() is overridden.
(int)
(Optional)
Site ID. Default null (current site).
Default value: null
(string)
(Optional)
Path relative to the site URL.
Default value: ''
(string)
(Optional)
Scheme to give the site URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', or 'relative'.
Default value: null
(string) Site URL link with optional path appended.