WordPress.org

Forums

WooCommerce - excelling eCommerce
Can't get rid of user roles on uninstall (3 posts)

  1. Justin Handley
    Member
    Posted 10 months ago #

    When I uninstall woocommerce, it leaves the user roles in place, and I can't figure out how to get rid of them. They are not allowing someone who is an admin to actually administrate the site as she is also set to shop manager. How can I delete these user roles?

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

  2. david_kly
    Member
    Posted 6 months ago #

    Same here. Quick fix please

  3. Justin Handley
    Member
    Posted 6 months ago #

    I can't remember how I did his - it was a while ago, but you can always delete roles manually..

    function sf_remove_role() {
        remove_role( 'author' );
    }
    add_action( 'init', 'sf_remove_role' );

Reply

You must log in to post.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags