Edit option across all sites?

Anyone know of a plugin that lets you edit an option across all sites in a network? I use the WPMU defaults plugins to set options for all new sites, but now I need to change a setting across all sites and I'd rather not do that manually on 100's of sites…

Even if there's not a plugin out there, how have other people dealt with this problem in the past?

  • DavidM
    • DEV MAN’s Mascot

    Hi Chris,

    Good question! I believe something like that's been requested for the New Blog Templates plugin but as the name implies it wouldn't really suit its purpose.

    The Site Template plugin is more appropriately named, but it doesn't have that feature as well.
    http://wordpress.org/extend/plugins/site-template/

    I imagine writing up a quick script to take care of sitewide option changes would work too, something maybe like the following for changing the siteurl.

    <?php
    $blog_list = get_blog_list( 0, 'all' );
    foreach ($blog_list AS $blog) {
    switch_to_blog($blog['blog_id']);
    update_option('siteurl','http://example.com/blog');
    restore_current_blog();
    }
    ?>

    Perhaps others around here have some good ideas on that too. Anyone?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.