wpmu_activate_user
Fires immediately after a new user is activated.
Usage
add_action( 'wpmu_activate_user', 'wp_kama_wpmu_activate_user_action', 10, 3 ); /** * Function for `wpmu_activate_user` action-hook. * * @param int $user_id User ID. * @param string $password User password. * @param array $meta Signup meta data. * * @return void */ function wp_kama_wpmu_activate_user_action( $user_id, $password, $meta ){ // action... }
- $user_id(int)
- User ID.
- $password(string)
- User password.
- $meta(array)
- Signup meta data.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wpmu_activate_user
wp-includes/ms-functions.php 1219
do_action( 'wpmu_activate_user', $user_id, $password, $meta );
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 27
add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
wp-includes/ms-default-filters.php 28
add_action( 'wpmu_activate_user', 'wpmu_welcome_user_notification', 10, 3 );