• Hi Scribu,

    Here I am again with a question… Is there a way that the editable_image can work not only for admin member but also for other type like author?

    Sorry to bother you with my problems. Thanks again for all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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?

    Thread Starter Louis-Philippe Dea

    (@louis_dea)

    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

    Thread Starter Louis-Philippe Dea

    (@louis_dea)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Front-end Editor] – editable_image just work for admin’ is closed to new replies.