bp_core_signup_user

Fires at the end of the process to sign up a user.

Description

do_action( 'bp_core_signup_user', (bool|WP_Error) $user_id, (string) $user_login, (string) $user_password, (string) $user_email, (array) $usermeta ); 

Parameters (5)

0. $user_id (bool|WP_Error)
True on success, WP_Error on failure.
1. $user_login (string)
Login name requested by the user.
2. $user_password (string)
Password requested by the user.
3. $user_email (string)
Email address requested by the user.
4. $usermeta (array)
Miscellaneous metadata about the user (blog-specific signup data, xprofile data, etc).

Usage

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

Defined (1)

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

/bp-members/bp-members-functions.php  
  1. do_action( 'bp_core_signup_user', $user_id, $user_login, $user_password, $user_email, $usermeta );