Warning: This function has been deprecated. Use is_main_site() instead.
is_main_blog() WordPress Function
The is_main_blog() function is used to check if the current blog is the main blog. This function is useful for multi-site installations. If the current blog is the main blog, this function will return true. Otherwise, it will return false.
is_main_blog() #
Deprecated functionality to determin if the current site is the main site.
Description
See also
Source
File: wp-includes/ms-deprecated.php
function is_main_blog() { _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' ); return is_main_site(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Use is_main_site() |
MU (3.0.0) | Introduced. |