WordPress at a glance
filter is not described

site_url filter-hook . WP 2.7.0

Filters the site URL.


add_filter( 'site_url', 'filter_function_name_7164', 10, 4 );
function filter_function_name_7164( $url, $path, $scheme, $blog_id ){
	// filter...

	return $url;
The complete site URL including scheme and path.
Path relative to the site URL. Blank string if no path is specified.
Scheme to give the site URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
Site ID, or null for the current site.


Since 2.7.0 Introduced.

Where the hook is called

wp-includes/link-template.php 3301
return apply_filters( 'site_url', $url, $path, $scheme, $blog_id );

Where in WP core the hook is used WordPress

Usage not found.