wpmu_current_site()
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() wpmu current site code WP 6.5.2
function wpmu_current_site() { global $current_site; _deprecated_function( __FUNCTION__, '3.9.0' ); return $current_site; }