Viewing 1 replies (of 1 total)
  • Hi @zokkoz,

    Thank you for reporting this. We will fix this in our upcoming updates.

    For now, in order to delete a role, you can either use a custom code or the User Role Editor plugin which makes it a lot easier.

    SureCart adds four user roles after installation, which are SureCart Customer, SureCart Shop Manager, SureCart Shop Accountant, and SureCart Shop Worker.

    Here’s the custom that will remove all SureCart user roles:?

    function wps_remove_role() {

    remove_role( ‘sc_customer’ );

    remove_role( ‘sc_shop_manager’ );

    remove_role( ‘sc_shop_accountant’ );

    remove_role( ‘sc_shop_worker’ );

    }

    add_action( ‘init’, ‘wps_remove_role’ );

    If you’d like to remove only one or some of them, you can remove the line that represnts the user role you’d like to keep.

    To use this custom, you will need to simply add it to the functions.php file on your child theme. Once you added the code and saved the file and got the job done, you can remove the code and save the file again.

    Alternatively, you can use the Code Snippets plugin to run this code on your website.?

    Best,

Viewing 1 replies (of 1 total)
  • The topic ‘SureCart Customer user role left behind after plugin deletion’ is closed to new replies.