bp_core_activated_user

The BuddyPress bp core activated user hook.

Description

add_action( 'bp_core_activated_user', (string) $xprofile_sync_wp_profile ); 

Parameters (1)

0. $xprofile_sync_wp_profile (string) => 'xprofile_sync_wp_profile'
The xprofile sync wp profile.

Usage

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

Defined (3)

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

/bp-xprofile/bp-xprofile-functions.php  
  1. add_action( 'bp_core_activated_user', 'xprofile_sync_wp_profile' ); 
/bp-members/bp-members-activity.php  
  1. add_action( 'bp_core_activated_user', 'bp_core_new_user_activity' ); 
/bp-core/bp-core-cache.php  
  1. add_action( 'bp_core_activated_user', 'bp_core_clear_member_count_caches' );