Support » Plugin: Order Your Posts Manually » Simple, and effective

  • Simple and works. 5 star from me.

    One suggestion though: I had to make this available to “Editors” too as it is only available for “Administrators”. So i had to change just one line of code. I hope next version has some checkboxes with the roles of users where you want this plugin to be available.

    p.s. if you want to make it available to Editors too, edit the order-your-posts-manually.php file and just change the

    add_management_page(__('Order Your Posts Manually','order-your-posts-manually'), __('Order Your Posts Manually','order-your-posts-manually'), 'manage_options','opm-order-posts.php', array( &$this, 'opm_list_posts'));

    to

    add_management_page(__('Order Your Posts Manually','order-your-posts-manually'), __('Order Your Posts Manually','order-your-posts-manually'), 'edit_others_posts','opm-order-posts.php', array( &$this, 'opm_list_posts'));

    as you can see the only difference is the 'manage_options' that is being changed to 'edit_others_posts'. Simply put, that defines what users are able to work with this plugin. The people that have 'manage_options' privileges are the administrators. The people that have 'edit_others_posts' are the editors. Similarly it may work with less-privileged users such as authors and contributors-haven’t tested it though.

    Needless to say the above code modification is not officially supported and it will not persist if you apply an update or something. So use it at your own risk.

Viewing 1 replies (of 1 total)
  • Plugin Author cageehv

    (@cageehv)

    Thank you for the compliments and thank you for your suggestion!

    I just released v1.10 of the plugin with a new option ‘Also allow editors to use this plugin’ (and many other minor changes / updates)

    Enjoy!

    Rolf van Gelder

Viewing 1 replies (of 1 total)
  • The topic ‘Simple, and effective’ is closed to new replies.