after_signup_user
Fires after a user's signup information has been written to the database.
Usage
add_action( 'after_signup_user', 'wp_kama_after_signup_user_action', 10, 4 ); /** * Function for `after_signup_user` action-hook. * * @param string $user The user's requested login name. * @param string $user_email The user's email address. * @param string $key The user's activation key. * @param array $meta Signup meta data. * * @return void */ function wp_kama_after_signup_user_action( $user, $user_email, $key, $meta ){ // action... }
- $user(string)
- The user's requested login name.
- $user_email(string)
- The user's email address.
- $key(string)
- The user's activation key.
- $meta(array)
- Signup meta data.
Default: empty array
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
after_signup_user
wp-includes/ms-functions.php 897
do_action( 'after_signup_user', $user, $user_email, $key, $meta );
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 29
add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 );