Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Danielle Phipps
Danielle Phipps
2,861 Points

Random WordPress User Role Question

I am trying to grant editors access to add and delete users in my WordPress website. I have been looking for code I can put into my functions.php file and have not found anything. I don't want to use a plugin because I already have one that grants access for everything else. If anyone can help me out I would really appreciate it. Thanks!

3 Answers

John Locke
John Locke
15,479 Points

Hi Danielle Phipps :

I'm not sure that you can extend the ability to add and delete users to Editors. You might have to make them Administrators. If anyone knows of a function to the contrary, I hope they can share it with you.

http://codex.wordpress.org/Roles_and_Capabilities#Roles

Danielle Phipps
Danielle Phipps
2,861 Points

I know it's possible to do using a plugin. I'm going to keep looking because there has to be a way to do it somehow.

Matt Campbell
Matt Campbell
9,767 Points

Danielle Phipps, have you seen this?

http://wordpress.org/plugins/user-role-editor/

The only other way would be to get into the WordPress engine code and change it. Problem with that is, every time you update WordPress, it'll overwrite the code.