• Resolved Dysschord

    (@dysschord)


    This plugin did not meet my needs. I also added the plugin WC Vendors to go with it. I uninstalled both. Now I have several extra User Roles (with no user assigned to them) and no matter which User Role editor or manager plugin I try, I cannot remove these roles!

    I now have Shop_manager, Shop_vendor, Shop_accountant, and Shop_worker and NO WAY to delete them?

    https://wordpress.org/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Prasad Nevase

    (@prasad-nevase)

    You can use User Role Editor plugin to delete the roles. Once you install and activate, go to Users > User Role Editor and then select user role from the dropdown on top of that page. You may delete any unwanted user roles. Please take a look at this screenshot for deletion steps. I hope this helps.

    Thread Starter Dysschord

    (@dysschord)

    I have tried User Role Editor plugin as well as I tried others. I tried inseting code I found into my theme’s functions.php. Nothing works.

    Prasad Nevase

    (@prasad-nevase)

    May be you are doing something wrong, because I tried User Role Editor just before suggesting you. Please make sure you have WooCommerce and any of its add-ons deactivated when you try to delete the roles using User Role Editor plugin. After activating WooCommerce, you will get the roles back if needed.

    Thread Starter Dysschord

    (@dysschord)

    I completely uninstalled WooCommerce and its companion plugun WC Vendors. I am telling you, I did nothing wrong. I am very experienced with computers, and have had WordPress installs for years. I selected the user role to delete and clicked Delete User Role. I logged out and back in as Administrator. The roles are still there. I tried with other User Role plugins. NONE work.

    Thread Starter Dysschord

    (@dysschord)

    Update, with User Role Editor, I also see that a TON of new woocommerce custom capabilities have been added, and they apparently don’t delete either!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    One the roles are added they will remain until explicitly deleted.

    User role editor lets you remove capabilities as well as roles.

    Deactivate WooCommerce THEN remove the roles and capabilities with role editor. When you re-activate WooCommerce only the ones it needs/adds will be added back.

    Thread Starter Dysschord

    (@dysschord)

    Apparently, no one has read where I have stated TWICE that I already UNINSTALLED Woocommerce. And NEITHER the User roles NOR the Capabilities will delete. i DON’T want these roles or capabilites. EVER. And will NOT ever be reinstalling Woocommerce. There HAS to be a way to remove these without a fresh install o my entire site.

    Prasad Nevase

    (@prasad-nevase)

    While it is strange that User Roles are not getting deleted using User Role Editor plugin, another way I could suggest you is using remove_role. You can place following lines in your theme’s functions.php file to remove Shop Manager and Customer roles added by WooCommerce.

    remove_role( 'shop_manager' );
    remove_role( 'customer' );
    Thread Starter Dysschord

    (@dysschord)

    I tried your code, Prasad, in my functions.php file. Still have the user roles.

    I DID find that woocommerce did NOT uninstall a file… woocommerce.php – I found two instances of this file (in the theme and the child theme folders)

    SO… still stuck with unwanted user roles. I swear there must be some bad ju-ju in my WP installation. Everything else is perfect.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Just a quick qu; do any users exist in your install with said roles?

    Thread Starter Dysschord

    (@dysschord)

    No users assigned to the roles, no.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    I deactivated WooCommerce.

    Installed https://wordpress.org/plugins/wpfront-user-role-editor/

    http://glui.me/?i=jjt1lixw6d3zlyt/2016-04-10_at_18.10.png/

    And its gone. No issues, and also nothing to do with WooCommerce itself since the role system is all WordPress. Give that another try.

    Thread Starter Dysschord

    (@dysschord)

    Well, I tried the WPFront User Role Editor, Mike, just now. I click on a role, click Delete, the page changes to a Confirm Deletion button, I click it, and the page refreshes… only to show me it did NOT delete. This is ridiculous! What is happening? WHY can’t I delete these custom user roles? Thanks for the suggestion, Mike.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    That I don’t really know – I would only expect that to happen if something was still installed adding these roles when the page loads..

    Do other roles delete? You can add a new one with that plugin and then delete it after.

    Thread Starter Dysschord

    (@dysschord)

    I will try that tomorrow morning. I haven’t tried deleting any other roles except the woocommerce ones. Will update here tomorrow.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Unable to delete User Roles after uninstalling’ is closed to new replies.