bbp_profile_update

The main action for hooking into when a user account is updated.

Description

bbp_profile_update( (int) $user_id = 0, (array) $old_user_data = array() ); 

Parameters (2)

0. $user_id — Optional. (int)
ID of user being edited
1. $old_user_data — Optional. (array) => array()
The old, unmodified user data

Usage

  1. if ( !function_exists( 'bbp_profile_update' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/sub-actions.php'; 
  3.  
  4. // ID of user being edited 
  5. $user_id = -1; 
  6.  
  7. // The old, unmodified user data 
  8. $old_user_data = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bbp_profile_update($user_id, $old_user_data); 
  12.  

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_profile_update( $user_id = 0, $old_user_data = array() ) { 
  2. do_action( 'bbp_profile_update', $user_id, $old_user_data );