[wp-testers] More than one Dashboard Site possible?

scribu scribu at gmail.com
Sat Apr 3 18:34:18 UTC 2010


On Sat, Apr 3, 2010 at 8:44 PM, Tim Scharner <info at screenfluid.de> wrote:

> For example. I have my main blog example.com and two subblogs
> test1.example.com and test2.com.  New users can write automatically on
> both subblogs?
>

Not automatically. You have to assign them a role for each blog.

Here's a little script I use to automate this:

function setup_users($blog_id) {
        $user_ids = array(2, 31, ...  );

        foreach ( $user_ids as $user_id )
            add_user_to_blog($blog_id, $user_id, 'edit');
}
add_action('wpmu_new_blog', 'setup_users'));

It's very basic, but I'm sure you get the gist of it.


-- 
http://scribu.net


More information about the wp-testers mailing list