WPMU DEV Members receive personal, comprehensive and timely support and assistance from experienced WPMU and BuddyPress developers.

Helping beginners and advanced users since 2005
Join WPMU DEV Today
And transform your WPMU or BuddyPress site
Includes Unlimited Access to:

Private Members
Only Forum

Live Chat Help
and Support

Comprehensive
"How To" Videos

WPMU and BuddyPress
Manuals and More

Assign all users to blog 1

I have just finished converting a normal wp to wpmu.

I have over 20,000 Users, I want to assign all of them to blog 1 . Any query that can do this?

Thanks

Help & Support from WPMU Dev members and staff

Hiya,

I don't think you could pull that off with a single query. I'd write a script to handle it.

Thanks,
Andrew

well, go into site admin => options set blog ID 1 as the dashboard blog, should work this way...

I thought that feature was buggy? I tried it a while back on several sites and it just resulted in errors.

Thanks,
Andrew

Works for us but not previous users.

Create script that runs through all users (someone must have done a list all users script somewhere)

Function I believe is add_user_to_blog(usernumberid, blogid, subscriberlevel). Look in wpmufunctionsphp file for usage

Reply

You must log in to post.

To post your questions, and access all of our plugins, themes and support - become a member today.