By default, to edit random images in a theme, the user needs to have the ‘edit_theme_options” capability, which seems pretty appropriate.
Are you trying to let users edit images related to a certain post or page?
Yes exactly, on the front-end, the users can add a new post and in another, edit it (and edit the images that they have uploaded).
Thanks for the solution, it worked like a charm! (You were quick on this one 🙂 )
Note that a user with the edit_theme_options capability will also be able to edit navigation menus, widgets etc. in the admin.
Also note that they’ll be able to edit all the places where editable_image()
is used on the site. You could control that with the ‘front_end_editor_allow_option’ filter:
https://github.com/scribu/wp-front-end-editor/wiki/Actions-and-filters
Ok thanks for letting me know. I just created a new role capability for this specific need.
In the plugin, I changed “edit_theme_options” on the line 326 of the page other.php for my new capability.