Support » Plugin: More Privacy Options » Global settings should have another default option

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Sader

    (@dsader)

    Here is a non-coder plugin to set all sorts of options by default for new blogs:

    https://wordpress.org/plugins/wpmu-new-blog-defaults/

    The wpmu-new-blog-defaults plugin is not current, but it might still work.

    However, creating your own mu-plugin to set your own default settings/options is what I do recommend:

    <?php
    add_action('wpmu_new_blog', 'ds_new_blog_settings');
    function ds_new_blog_settings($blog_id) {
    update_blog_option($blog_id, 'blog_public', '-1' );  // 1, 0, -1, -2, or -3
    }
    ?>
    Thread Starter Stacy (non coder)

    (@functionmunchkin)

    Thanks. Would -3 be the visible to site admins only default? Would I just put this in the standard plugin file under the name? Doesn’t More Privacy Options need to be referenced somewhere for it to be an addon-on plugin?

    Plugin Author David Sader

    (@dsader)

    https://codex.wordpress.org/Must_Use_Plugins

    Exactly that snippet above inside a *.php file in your mu-plugins folder.

    When you upgrade, mu-plugins will still be there. All kinds of WP trickery can be loaded from there.

    I use my own plugin with default settings for it and a gazillions of others in this or similar ways.

    Ha. Thanks for linking to one of our plugins – New Blog Defaults – but just note that it’s no longer maintained and probably works a little worse with each new WP version 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Global settings should have another default option’ is closed to new replies.