Warning: This function has been deprecated. Use get_current_site() instead.

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

get_current_site_name() WordPress Function

The get_current_site_name() function is used to get the name of the current site. This is useful for multisite installations where the site name may be different from the network name.

get_current_site_name( WP_Network $current_site ) #

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


Description

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


Top ↑

Parameters

$current_site

(WP_Network)(Required)


Top ↑

Return

(WP_Network)


Top ↑

Source

File: wp-includes/ms-load.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.9.0Use get_current_site() instead.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.