The MU forums have moved to WordPress.org

change default setting for Options->Discussion (5 posts)

  1. horrorshow
    Member
    Posted 14 years ago #

    Hi,

    I would like to change default settings for Option->Discussion -> Before a comment appears
    when users create a new blog.

    By default, it's "comment author must have a previously approved comment".
    I'd like to have that option unchecked.

    I basically don't want comments held in moderation.

    thanks,
    Horrorshow

  2. horrorshow
    Member
    Posted 14 years ago #

    I am answering my own question.. In case someone else has a similar question,

    For Wordpress MU version 1.3.1
    The default values are in: wp-admin/includes/schema.php
    Line 282
    for "comment_whitelist", change default value from 1 to 0

  3. Akashic
    Member
    Posted 14 years ago #

    And administrator to always approve coment, set
    'comment_moderation' to 1.

    Is it possible to do it without hacking the core files?

    I've tried making a mu-plugin like

    function blogs_conf ( $blog_id ) {
        add_option('comment_moderation', 1);
        return;
    }
    add_action('wpmu_new_blog', 'blogs_conf');

    Well, it does work for new entry (WP_LANG), but probably not for existing one. But 'update_option' didn't helped either.

    Anyone tried that before?

  4. tdjcbe
    Member
    Posted 14 years ago #

    http://mu.wordpress.org/forums/topic.php?id=6139

    There's other threads as well if you search for "change existing options"

  5. Akashic
    Member
    Posted 14 years ago #

    Was looking but by other criteria.
    Well, direct query is rather simple option but I was hoping to do that in update/add_option way. Then I coul have all my hacks in one plugin.
    Don't know what was expecting... :)

    Thank for help!
    A.

About this Topic

  • Started 14 years ago by horrorshow
  • Latest reply from Akashic