• Is it possible to set default or fixed settings for a particular plugin(s) or network blogs ? Such that I won’t have to configure the same plugin and same setting for every blog, and also, that new blogs that are added will have the plugin and settings enabled…

    This is for plugins like, Sexybookmarks , I basically want every site to have the fixed setting , and also WP-SMTP , where I want every site to have the SMTP Mail settings configured (coz standard php send_mail() is not viable on my server ) .

    But really, I need to :

    1) be able to configure settings for a plugin and make every site across the network use it.

    2) be able to set it such that when a new blog is created, it has a specific default set of configured plugins.

    Your help and insight would be GREATLY appreciated.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s a paid one that does exactly that.

    wpebooks.com/replicator/

    1) A couple ideas to make each plugin prepopulate identical settings:

    • Edit each plugin’s “get_option(‘blabity blah)” with just the vaue you want for example:$key = get_option('wordpress_api_key'); becomes $key ='1m12m2m3bb412j325ljk24l5jhl';
    • Use a “mu-plugin” to hook the pre_option filter before the plugin retrieves the option – for example:
      <?php
      function override_foo() {
      	$bar = '1m12m2m3bb412j325ljk24l5jhl'; // the value of the option
          return $bar;
      }
      $option = 'wordpress_api_key'; // whatever blog option you like
      add_filter( 'pre_option_' . $option, 'override_foo' );
      ?>

    2) “Network Activate” each plugin you want active on every site, and even new ones will be created with those plugins active.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to set default plugin settings for every blog ?’ is closed to new replies.