开发者

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 exa开发者_Python百科mple.


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 the user is activated, the bp_core_activated_user action happens.

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


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,


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜