Hello
I made a plugin that save to a log the actions of creating a new blog.
When users, in admin panel (/wp-admin/wpmu-blogs.php), creates a new blog the action is catched and save successfully using the follow code:
add_action("wpmu_new_blog", 'handle_action_wpmu_new_blog', 1, 2;
function handle_action_wpmu_new_blog($blog_id, $user_id) {
// code to save in the log that the user $user_id creates a new blog
}
The problem is when:
- user register and creates a blog in the same time (using register option, /wp-signup.php)
- the user click on the activation link that he/she receives
- the user get the notification of successfully activation of user account and blog
After the previous steps, my function (handle_action_wpmu_new_blog) isn't called.
Thanks in advanced, any help will be appreciated.