What is the edit_themes permission in WordPress?
The edit_themes permission is important in WordPress because it allows to make changes to the site's theme files.
If you have the edit_themes permission, you will see this link in the WordPress admin area:
- Appearance > Theme Editor
The Theme Editor in WordPress allows you make direct changes to your site's theme files. This guide talks about access to the “Theme Editor” screen in detail.
Who has the edit_themes permission?
The edit_themes permission is available on single WordPress sites and on multisite networks.
Users not in these roles are not allowed to edit the site's theme files.
How to control who has the edit_themes permission
You can control who has the edit_themes permission by installing the PublishPress Capabilities plugin.
- After installing PublishPress Capabilities, go to “Capabilities” in your WordPress admin menu.
- In “Select Role to View/Edit”, choose the role you want to edit.
- Check the box “edit themes”.
- Click “Save Changes”.