skip to Main Content
Groups: Remove User Automatically From Registered Group

Request

This is a fix for a bug that came through regarding the automatic addition of the  Registered group to users. The client’s site depended on users only being a member of a single group.

My fix is specific for using WooCommerce since it’s using the woocommerce_before_cart filter, but it could be modified to use any filter.

Required Plugins

Code

Disclaimer

Maje Media LLC cannot be held responsible for the functionality of this code. Please make sure you test it on a development site before adding the code to your production website. There is no support available for this (and other) code snippet(s) posted on this website. If you’d like Maje Media to do custom development to help with your custom implementation please send a contact request.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top