User defaults

I managed to adjust register plus plugin to allow registrations of new users to individual blogs on MU. So now I can have people register to get a new blog via wp-signup.php or have them register as individual users on individual blogs via wp–login.php?action=register

Here is my problem.

I want the new users who register for individual blogs to automatically be set as authors.

I know that blog administrator can select a user (one at a time) and set that selected user as author (however that is useless to me)

Where in WP files is this setting defined as default. I am ok with having to change the core files (since I can’t find the other way to do this).. I assume it would take changing something that says ‘subscriber’ to ‘author’. All help would be greatly appreciated :slight_smile:

(user defaults plugin does not work for this, I tried)

  • Kristina
    • Site Builder, Child of Zeus

    I would love to do it that way,,, but I am slightly dumb for WP plugins…

    This code changes the user role at time of registering a blog (sets them as author to newly created blog)

    function new_blog_settings($blog_id)







    if(get_the_author_ID() > 1)


    $user = new WP_User(get_the_author_ID());

    $user->set_role('author'); // WPMU default is 'administrator'





    add_action('wpmu_new_blog', 'new_blog_settings');

    I am using this as MU plugin for that…

    I have no idea how to modify this to make it work for users registering as authors on individual blogs…

  • Kristina
    • Site Builder, Child of Zeus

    I understand,,,, it is not a big deal considering that the platform I run is new and that the idea is generally to set everything before one goes public with the system…

    I will most likely make the changes in the DB for those that are already there.

    Thanks for help,, this helped a bunch. I am literally one feature away from DONE (invitation code plugin that you mentioned you already started… can’t wait for it :slight_smile: )

    ~ Kristina

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.