Support » Networking WordPress » Function Reference / add_role()

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ll need to write a simple plugin and have the add_role part of the activation script. Then you can remove the plugin. If you add it to your themes functions file or anywhere else, it will get called over and over.

    To make it the default, go to the settings tab in the edit site page of the network admin? About 40 options down, you’ll see Default Role… Enter the slug for your new role.



    Of course if you remove the plugin, it won’t create it for NEW sites.

    You may want to try manually adding it to existing sites, and then making a plugin (toss it in mu_plugins) to create it on new sites when they’re activated.

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function Reference / add_role()’ is closed to new replies.