is_main_blog()

This function has been deprecated. Use is_main_site() instead.

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();
}

Changelog

Version Description
3.0.0 Use is_main_site()
MU (3.0.0) Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_main_blog