wpmu_current_site()WP 3.0.0

Deprecated from version 3.9.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

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

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

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

WP_Network.

Usage

wpmu_current_site();

Notes

  • Global. WP_Network. $current_site

Changelog

Since 3.0.0 Introduced.
Deprecated since 3.9.0

wpmu_current_site() code WP 6.5.4

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