Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.