after_signup_user

Fires after a user's signup information has been written to the database.

Description

do_action( 'after_signup_user', (string) $user, (string) $user_email, (string) $key, (array) $meta ); 

Parameters (4)

0. $user (string)
The user's requested login name.
1. $user_email (string)
The user's email address.
2. $key (string)
The user's activation key
3. $meta (array)
Additional signup meta. By default, this is an empty array.

Usage

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

Defined (1)

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

/wp-includes/ms-functions.php  
  1. do_action( 'after_signup_user', $user, $user_email, $key, $meta );