Used By
Used By | Description |
---|---|
wp-includes/link-template.php: get_site_url() | Retrieves the URL for a given site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible. |
Filters the site URL.
(string) The complete site URL including scheme and path.
(string) Path relative to the site URL. Blank string if no path is specified.
(string|null) Scheme to give the site URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
(int|null) Site ID, or null for the current site.
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_url