The MU forums have moved to WordPress.org

More Privacy Options: Default for new blogs? (8 posts)

  1. ben_allison
    Member
    Posted 15 years ago #

    Just wondering: what would be the best way to have a More Privacy Options setting (Members only) be assigned upon blog creation?

  2. dsader
    Member
    Posted 15 years ago #

    add_action( 'wpmu_new_blog', 'ds_new_blog_options', 10, 2);
    function ds_new_blog_options($blog_id, $user_id) {
    	update_blog_option( $blog_id, "blog_public", '-2');
    }
  3. ben_allison
    Member
    Posted 15 years ago #

    Holy...

    Thanks so much! I expected a tip to point me in the right direction, but you just went ahead and spit out code!

    You're awesome brother. Have a great rest of the weekend!

  4. Trent
    Member
    Posted 15 years ago #

    Have you tried your plugin dsader on WPMU 2.7? Does it work without issues?

    Trent

  5. andrea_r
    Moderator
    Posted 15 years ago #

    I'm not sure dsader can type anything BUT code. :)

  6. dsader
    Member
    Posted 15 years ago #

    <?php if('props' FROM 'Andrea_r') {
    	return $thanks;
    }
    ?>
  7. dsader
    Member
    Posted 15 years ago #

    Trent, just tried again with a TRUNK WPMU2.7 and privacy plugin looks the same to me.

  8. ben_allison
    Member
    Posted 15 years ago #

    LOL! Dsader's code post FTW!

    I'm running it on 2.7 beta, and it's 100% operational!

About this Topic

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