3cees
3cees

Reputation: 11

Wordpress Hook for user account activation

what is the action hook, if a user activates his profile? For the profile update, it is:

profile_update

for example.

Upvotes: 1

Views: 6806

Answers (3)

Linux Pro
Linux Pro

Reputation: 468

Old question which may not have been fully answered: the user may be using BuddyPress which may require an activation step after the initial user registration, even on single sites.

In that case, the user_register action happens immediately after an account is registered, but before it is activated. After activation, the bp_core_activated_user action happens.

http://hookr.io/actions/bp_core_activated_user/

Upvotes: 6

Neiljun I. Odiaz
Neiljun I. Odiaz

Reputation: 21

It's maybe late but i like point that personal_options_update would solve your problem.

use can use some hooks on this like:

    action('personal_options_update', 'update_pass_meta');
    // update user meta during profile update
    function profilescreen($user, $pass1, $pass2){
        $currnt_user = wp_get_current_user();
        $userid = $currnt_user->ID;
        update_user_meta($userid, '_temp_user_pass', $pass2 );
    }

    function update_pass_meta() {
        add_action( 'check_passwords','profilescreen', 10, 3);
    }

Regards,

Upvotes: 0

Greg
Greg

Reputation: 2563

This might be what you are looking for: http://codex.wordpress.org/Plugin_API/Action_Reference/user_register

For multisite Wordpress I have also used the 'wpmu_activate_user' action.

Upvotes: -1

Related Questions