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 trialDanielle Phipps
2,861 PointsRandom 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
15,479 PointsHi 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.
Danielle Phipps
2,861 PointsI 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
9,767 PointsDanielle 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.