bp_core_get_active_member_count
Filters the total number of members for the installation limited to those with last_activity.
Description
Parameters (1)
- 0. $count (number)
- Total number of active members.
Usage
- To run the hook, copy the example below.
- $count = apply_filters( 'bp_core_get_active_member_count', $count );
- if ( !empty( $count ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_core_get_active_member_count callback
- function filter_bp_core_get_active_member_count( $count ) {
- // make filter magic happen here...
- return $count;
- };
- // add the filter
- add_filter( 'bp_core_get_active_member_count', 'filter_bp_core_get_active_member_count', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_core_get_active_member_count', 'filter_bp_core_get_active_member_count', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-members/bp-members-functions.php
- return apply_filters( 'bp_core_get_active_member_count', $count );