get_current_site_name()WP 3.0.0

Deprecated from version 3.9.0. It is no longer supported and can be removed in future releases. Use get_current_site() instead.

This deprecated function formerly set the site_name property of the $current_site object.

This function simply returns the object, as before. The bootstrap takes care of setting site_name.

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

get_current_site_name( $current_site );
$current_site(WP_Network) (required)
-

Changelog

Since 3.0.0 Introduced.
Deprecated since 3.9.0 Use get_current_site() instead.

get_current_site_name() code WP 6.5.4

function get_current_site_name( $current_site ) {
	_deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' );
	return $current_site;
}