bp_core_do_network_admin()
Should BuddyPress appear in network admin (vs a single site Dashboard)?
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
(bool) True if the BP admin screen should appear in the Network Admin, otherwise false.
Source
File: bp-core/bp-core-functions.php
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 | 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 BuddyPress 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 ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | 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.