Support » Plugins and Hacks » [Resolved] [Plugin: Post Snippets] Editor's role

[Resolved] [Plugin: Post Snippets] Editor's role

  • Hi,

    First of all it’s a great plugin, so massive thanks for it.

    My only comment is the way it restricts editting snippets. While you limit this feature to administrative users only it should be also allowed for Editors.

    I can see you’re using if ( current_user_can('manage_options') ), which is all fine but by definition Editors should be capable of editting others’ content. Snippets are not options.

    Do you think it could be corrected, or perhaps customisable somewhere?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    As criography mentioned, individual role control for shortcodes would make me have to use your plugin!

    BTW Thanks! I love the plugin, but I have to have role control!

    Plugin Author Johan Steen



    Sorry for super late reply. But you are right, and it makes sense. I’ve added it to the things to change for the soon upcoming 2.1 update.


    Plugin Author Johan Steen


    Getting into the code, I started thinking. Currently editors gets a non editable view of the snippets. Allowing editors to edit snippets, will allow them to enter and execute PHP code. That would probably not be desired.

    I will copy this note to my issue list at GitHub, and give it some more thought. What do you think?

    Plugin Author Johan Steen


    A constant can be set in the coming update that allows users with edit_posts capability access to the snippets admin.

    Nice one! Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Post Snippets] Editor's role’ is closed to new replies.