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

---

# wpmu_current_site(): 󠀁[WP_Network](https://developer.wordpress.org/reference/classes/wp_network/)󠁿

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#changelog)

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

This function has been deprecated since 3.9.0.

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

This deprecated function managed much of the site and network loading in multisite.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#description)󠁿

The current bootstrap code is now responsible for parsing the site and network load
as well as setting the global $current_site object.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wpmu_current_site/?output_format=md#return)󠁿

 [WP_Network](https://developer.wordpress.org/reference/classes/wp_network/)

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

    ```php
    function wpmu_current_site() {
    	global $current_site;
    	_deprecated_function( __FUNCTION__, '3.9.0' );
    	return $current_site;
    }
    ```

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

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

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

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

| Version | Description | 
| [3.9.0](https://developer.wordpress.org/reference/since/3.9.0/) | Deprecated.  | 
| [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%2Ffunctions%2Fwpmu_current_site%2F)
before being able to contribute a note or feedback.