Filter hook 'site_url'
in WP Core File wp-includes/link-template.php at line 3528
Description
Filters the site URL.
Occurrences
Filename |
Line Number |
wp-includes/link-template.php |
3528 |
wp-includes/https-detection.php |
58 |
Parameters
Type |
Name |
Description |
string |
$url |
The complete site URL including scheme and path. |
string |
$path |
Path relative to the site URL. Blank string if no path is specified. |
string|null |
$scheme |
Scheme to give the site URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null. |
int|null |
$blog_id |
Site ID, or null for the current site. |
PHP Doc
/**
* Filters the site URL.
*
* @since 2.7.0
*
* @param string $url The complete site URL including scheme and path.
* @param string $path Path relative to the site URL. Blank string if no path is specified.
* @param string|null $scheme Scheme to give the site URL context. Accepts 'http', 'https', 'login',
* 'login_post', 'admin', 'relative' or null.
* @param int|null $blog_id Site ID, or null for the current site.
*/