The MU forums have moved to WordPress.org

How to set the default setting? (6 posts)

  1. eporedieis
    Member
    Posted 15 years ago #

    I must set default setting for new author on my wordpress mu, like date/hour format and language...how to do it?
    Thanks!

  2. tdjcbe
    Member
    Posted 15 years ago #

    Depends on which specific default setting you;re changing. You may want to try searching the forums for 'default settings' as this has been discussed at some length previously.

  3. eporedieis
    Member
    Posted 15 years ago #

    Mmm...I've found no one answer! Excuse me if I continue here.
    I've tried a little script that I've copied in muplugin, but is not ok. Do you know what's the error? Do you know I can do? In the forum this problem was never solved.

    function blogs_format ( $blog_id ) {
    add_option('the_date', 'j F Y');
    add_option('the_time', 'G:i');
    return;
    }
    add_action('wpmu_new_blog', 'blogs_format');

    Please help me =)

  4. eporedieis
    Member
    Posted 15 years ago #

    I've changed the_time and the_date with time_format and date_format...but it's anyway not ok =(

  5. MrBrian
    Member
    Posted 15 years ago #

    function change_date_time () {
    add_option('date_format', 'j F Y');
    add_option('time_format', 'G:i');
    }
    add_action('populate_options', 'change_date_time');
  6. eporedieis
    Member
    Posted 15 years ago #

    I love you :D

About this Topic

  • Started 15 years ago by eporedieis
  • Latest reply from eporedieis