WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
WARNING! User Role Editor can remove admin menu and functionality (5 posts)

  1. myxmlcigar
    Member
    Posted 11 months ago #

    I'm using the TablePress Plugin and Duplicate Posts plugin.

    If you "Reset" roles in User Role Editor, 1) Your TablePress menu will be unaccessible and 2) You "clone" posts/pages from the Duplicate Posts will be gone.

    To restore your admin menu for Tablepress:

    1. Goto User Role Manager and click "Add Capability"
    2. Re-enter the below for Tablepress - this will restore your Tablepress admin menu.

    tablepress_edit_tables
    tablepress_delete_tables
    tablepress_list_tables
    tablepress_add_tables
    tablepress_copy_tables
    tablepress_import_tables
    tablepress_export_tables
    tablepress_access_options_screen
    tablepress_access_about_screen
    tablepress_import_tables_wptr
    tablepress_edit_options

    To Restore functionality for Duplicate Posts:

    1. Goto User Role Manager and click "Add Capability"
    2. Add "copy_posts" - without the quotes. This will allow you to clone posts/pages again.

    The author of this plugin should put a GIANT DISCLAIMER stating that resetting will remove functionality and access to other plugins.

    http://wordpress.org/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 11 months ago #

    Before fulfil the "Reset" operation User Role Editor shows confirmation box with this text:
    "Reset Roles to WordPress defaults. Be careful, all changes made by you or plugins will be lost. Some plugins, e.g. S2Member, WooCommerce reactivation could be needed. Continue?"
    Why do you think that it is not enough? Yes, some users do not read on screen messages carefully. But size of warning does not help here, I'm sure.
    If you have suggestion how to improve this message, I appreciate it.

    I hope writing about using "User Role Manager" to restore lost capabilities you meant "User Role Editor".
    Thanks for the useful information how to restore the lost functionality in case of accidental apply of "Reset" operation.

  3. Julian_Kingman
    Member
    Posted 8 months ago #

    I did the same thing. I assumed that since my plugin was not one of those, I wouldn't have trouble. Can you give some steps for how to find the capabilities that need to be re-added? I'm not even sure how many of them disappeared.

    For the text, I suggest something stronger, like:

    "DANGER! Resetting will restore default settings from WordPress Core. If any plugins have changed capabilities in any way upon installation (such as S2Member, WooCommerce, and many more), those capabilities will be DELETED! For more information on how to undo changes and restore plugin capabilities, click here"

    Include a link with some instructions to help the person. You could also make the button red, so people know it's not just undoing the changes they made.

  4. Julian_Kingman
    Member
    Posted 8 months ago #

    Another extremely useful feature would be to restore capabilities to what they were at the time of installation of user role editor, and to be able to do that on a per-user basis. In that case, the 'reset roles' would really be just a last resort, as it should be.

  5. Vladimir Garagulya
    Member
    Plugin Author

    Posted 8 months ago #

    Can you give some steps for how to find the capabilities that need to be re-added? I'm not even sure how many of them disappeared.

    Yes, read this post
    http://role-editor.com/how-to-restore-deleted-wordpress-user-roles/
    please.

    Thanks for the warning messsage text suggestion. I will include it into the nearest update.

    Another extremely useful feature would be to restore capabilities to what they were at the time of installation of user role editor, and to be able to do that on a per-user basis.

    Good suggestion. I will develop this feature with time. Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.