Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a hook for user activation (after they click the email confirm)? I am creating a plugin to automatically add them to my email software, but I want them to have to confirm their email first.

share|improve this question
1  
Have you searched here before asking? –  Raphael Jan 19 '12 at 11:32
add comment

3 Answers

wpmu_welcome_user_notification is a filter, but you can execute your action there, too.

Take care not to turn off notification mails accidentally; see the source.

share|improve this answer
    
Will this wpmu_ filter work on a regular site or is it just for multisites? –  Jay West Jan 19 '12 at 23:05
    
Codex doesn't say explicitly. I think I read somewhere that the multisite business has been merged into the standard version, so just have a try. Note, though, that wpmu probably stands for "Wordpress Multi User", not multi site. –  Raphael Jan 20 '12 at 7:18
add comment

You want wpmu_activate_user, at least if you're on multi-site.

my_function($user_id, $password, $meta)   {
    // do stuff
}
add_action('wpmu_activate_user','my_function');
share|improve this answer
add comment

try this one http://codex.wordpress.org/Function_Reference/register_activation_hook

share|improve this answer
1  
register_activation_hook() refers to plugin activation, not user activation. –  scribu Jan 19 '12 at 11:26
    
"The register_activation_hook function registers a plugin function to be run when the plugin is activated." –  Raphael Jan 19 '12 at 11:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.