wpmu_new_blog not firing if not logged in
-
I am working on adding some extra steps and functionality to the multisite register process.
When adding an action to wpmu_new_blog this fires normally when I as the admin user creates another blog. However, if I log out and create new blog this action is not run.
I also tried to add this to the wpmu_activate_blog action but since this is tied to the plugin I am working, activated on the main site but not the sub site, this does not fire on the new blog activation.
So I have a few questions:
- Why is wpmu_new_blog not firing my added action for non-logged in users, as it states it should in the comments above the function?
- Why does do_action in ms-functions.php pass multiple variables to it; when this function only receives one parameter?(I think this is a bug, or deprecated use maybe?)
- How can I activate a plugin for new blogs so that it will still run my hooks in the new site as well: on activation(since it uses the subdomain in my case)?
- Why can I not bypass the activation step as also stated in the comments by adding a filter to wpmu_signup_user_notification? It doesn’t appear to run this either as all I want ot do is activate automatically and return false to not send the confirmation email?
- Is there documentation on the meta variables and what they do specifically so if any of this can be accomplished through meta parameters(options) which I am already using for setting the theme and default front page?
$meta['page_on_front'] = 2; $meta['show_on_front']= 'page'; $meta['template']= 'newtheme'; $meta['stylesheet']= 'newtheme';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wpmu_new_blog not firing if not logged in’ is closed to new replies.