bp_members_admin_user_stats

The WordPress Core bp members admin user stats hook.

Description

add_action( 'bp_members_admin_user_stats', (string) $bp_blogs_profile_stats, (int) $int, (int) $int ); 

Parameters (3)

0. $bp_blogs_profile_stats (string) => 'bp_blogs_profile_stats'
The bp blogs profile stats.
1. $int (int) => 9
The int.
2. $int (int) => 1
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_members_admin_user_stats', $bp_blogs_profile_stats, $int, $int ); 
The following example is for adding a hook callback.
  1. // define the bp_members_admin_user_stats callback 
  2. function action_bp_members_admin_user_stats( $bp_blogs_profile_stats, $int, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_members_admin_user_stats', 'action_bp_members_admin_user_stats', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_members_admin_user_stats', 'action_bp_members_admin_user_stats', 10, 3 ); 

Defined (4)

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

/bp-blogs/bp-blogs-template.php  
  1. add_action( 'bp_members_admin_user_stats', 'bp_blogs_profile_stats', 9, 1 ); 
/bp-friends/bp-friends-template.php  
  1. add_action( 'bp_members_admin_user_stats', 'bp_friends_profile_stats', 7, 1 ); 
/bp-members/classes/class-bp-members-admin.php  
  1. do_action( 'bp_members_admin_user_stats', array( 'user_id' => $user->ID ), $user ); 
/bp-groups/bp-groups-template.php  
  1. add_action( 'bp_members_admin_user_stats', 'bp_groups_profile_stats', 8, 1 );