| @@ -94,8 +94,11 @@ | ||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | update_user_option($user_id, 'default_password_nag', true, true); // This will show alert to user to change the password. |
| 97 | 97 | $user = get_user_by('ID', $user_id); |
| 98 | + | |
| 99 | + // Following the default WordPress registration flow, we will notify user about the creation of new account. | |
| 100 | + do_action('register_new_user', $user_id); | |
| 98 | 101 | |
| 99 | 102 | // Save avatar if possible. |
| 100 | 103 | $tried_to_download = get_user_meta($user->ID, 'loginizer_avatar_download', true); |
| 101 | 104 | if(!empty($data['photoURL']) && !empty($loginizer['social_settings']['general']['save_avatar']) && empty($tried_to_download)){ |