Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get current site name

This function has been deprecated since Version 3.9. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use get_current_site instead.


Gets the current site name based on the value of the $current_site global variable.


<?php get_current_site_name$current_site ); ?>



Return Values

Returns $current_site object with site_name.

Source File

get_current_site_name() is located in wp-includes/ms-load.php.

Change Log

See also

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.