Adding a new user to a blog
-
I’m clearly very slow tonight. In my multisite environment, I want everyone to become a member of a specific blog. To do this, I have created a very small plugin which does this.
add_action('wpmu_new_user', 'mjt_join_add_user_to_community'); function mjt_join_add_user_to_community() { $blog_id = 3; $role = 'administrator'; add_user_to_blog($blog_id, $user_id, $role); }
The user gets created however they dont get added to the blog…. Am I missing something?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding a new user to a blog’ is closed to new replies.