This function has been deprecated. BuddyPress 1.5.0 instead.
bp_core_is_main_site( int|string $blog_id = '' )
bp_core_is_main_site
Description
Checks if current blog is root blog of site. Deprecated in 1.5.
Parameters
- $blog_id
-
(Optional) blog id to test (default current blog)
Default value: ''
Return
(bool) True if not multisite or $blog_id is main site
Source
File: bp-core/deprecated/buddypress/1.5.php
function bp_core_is_main_site( $blog_id = '' ) { _deprecated_function( __FUNCTION__, '1.5', 'is_main_site()' ); return is_main_site( $blog_id ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | BuddyPress 1.5.0 |
BuddyPress 1.2.6 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.