bp_is_network_activated
Filters whether or not we're active at the network level.
Description
Parameters (1)
- 0. $retval (bool)
- Whether or not we're network activated.
Usage
- To run the hook, copy the example below.
- $retval = apply_filters( 'bp_is_network_activated', $retval );
- if ( !empty( $retval ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_is_network_activated callback
- function filter_bp_is_network_activated( $retval ) {
- // make filter magic happen here...
- return $retval;
- };
- // add the filter
- add_filter( 'bp_is_network_activated', 'filter_bp_is_network_activated', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_is_network_activated', 'filter_bp_is_network_activated', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-core/bp-core-functions.php
- return (bool) apply_filters( 'bp_is_network_activated', $retval );