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.
- // run the action
- do_action( 'after_signup_user', $user, $user_email, $key, $meta );
- The following example is for adding a hook callback.
- // define the after_signup_user callback
- function action_after_signup_user( $user, $user_email, $key, $meta ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_signup_user', 'action_after_signup_user', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'after_signup_user', $user, $user_email, $key, $meta );