Title: network_site_url
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘network_site_url’, string $url, string $path, string|null $scheme )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#wp--skip-link--target)

Filters the network site URL.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#parameters)󠁿

 `$url`string

The complete network site URL including scheme and path.

`$path`string

Path relative to the network site URL. Blank string if no path is specified.

`$scheme`string|null

Scheme to give the URL context. Accepts `'http'`, `'https'`, `'relative'` or null.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'network_site_url', $url, $path, $scheme );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/link-template.php#L3767)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/link-template.php#L3767-L3767)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#related)󠁿

| Used by | Description | 
| [ms_load_current_site_and_network()](https://developer.wordpress.org/reference/functions/ms_load_current_site_and_network/)`wp-includes/ms-load.php` |

Identifies the network and site of a requested domain and path and populates the corresponding network and site global objects as part of the multisite bootstrap process.

  | 
| [network_site_url()](https://developer.wordpress.org/reference/functions/network_site_url/)`wp-includes/link-template.php` |

Retrieves the site URL for the current network.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/network_site_url/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fnetwork_site_url%2F)
before being able to contribute a note or feedback.