bp_blogs_get_profile_stats

Filters the number of blogs in user's profile.

Description

apply_filters( 'bp_blogs_get_profile_stats', (string) $r_output, (array) $r ); 

Parameters (2)

0. $r_output (string)
Output determined for the profile stats.
1. $r (array)
Array of arguments used for default output if none provided.

Usage

To run the hook, copy the example below.
  1. $r_output = apply_filters( 'bp_blogs_get_profile_stats', $r_output, $r ); 
  2.  
  3. if ( !empty( $r_output ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_blogs_get_profile_stats callback 
  2. function filter_bp_blogs_get_profile_stats( $r_output, $r ) { 
  3. // make filter magic happen here... 
  4. return $r_output
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_blogs_get_profile_stats', 'filter_bp_blogs_get_profile_stats', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_blogs_get_profile_stats', 'filter_bp_blogs_get_profile_stats', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/bp-blogs/bp-blogs-template.php  
  1. return apply_filters( 'bp_blogs_get_profile_stats', $r['output'], $r );