bp_core_do_network_admin()

Should BuddyPress appear in network admin (vs a single site Dashboard)?


Description Description

Because BuddyPress can be installed in multiple ways and with multiple configurations, we need to check a few things to be confident about where to hook into certain areas of WordPress’s admin.


Return Return

(bool) True if the BP admin screen should appear in the Network Admin, otherwise false.


Top ↑

Source Source

File: bp-core/bp-core-functions.php

function bp_core_do_network_admin() {

	// Default.
	$retval = bp_is_network_activated();

	if ( bp_is_multiblog_mode() ) {
		$retval = false;
	}

	/**
	 * Filters whether or not BuddyPress should appear in network admin.
	 *
	 * @since 1.5.0
	 *
	 * @param bool $retval Whether or not BuddyPress should be in the network admin.
	 */
	return (bool) apply_filters( 'bp_core_do_network_admin', $retval );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.