The MU forums have moved to WordPress.org

Automatic new blog user and permission settings (1 post)

  1. mdgross
    Member
    Posted 16 years ago #

    When a new blog is created the following actions need to take place.

  2. Our site editor gets added as an editor
  3. The blog registrant is demoted from administrator to editor
  4. I am able to make a distinction between the two users later in the templates
  5. The code so far:

    function new_blogs_setting( $blog_id , $user_id )  {
    	add_user_to_blog($blog_id, 4924, 'editor');
            return;
    }
    add_action('wpmu_new_blog', 'new_blogs_setting');

    It automatically adds the editor account and assigns level 7 access.

    Perhaps I just need a line to demote the new admin from level 10 to level 6?

    Or promote the editor to level 8 access and demote the new admin to level 7?

About this Topic