Winner of the Best WordPress Business Website - WP Honors 2011
Since 2004
 

Forums

 

Manuals

 

Videos

 

Live Support

 

WPMU.org

Assign all users to blog 1

Inactive

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

Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:

  • Download 250+ Premium Plugins and Themes
  • Get unlimited support from WordPress Experts
  • Get help with your WordPress or BuddyPress projects

Help & Support from WPMU DEV members and staff

Erstwhile founder

Hiya,

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

Thanks,
Andrew

Custom

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

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Erstwhile founder

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

Thanks,
Andrew

Keeper of the Dark Chocolate

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

We can help you out. Become a member today to:

  • Let our team help you out today and access to over 250+ Premium Plugins and Themes
  • Find out why people saying "it's like having your own developer"
  • WPMU DEV - The WordPress Experts