Memberships & WPML
The new feature of granting free membership on registration is really great, however with WPML for Woocommerce, it is issuing multiple free memberships (in every language) to a new user.
WPML Support say that at present, Memberships is not officially a compatible plugin, so as this is going to bloat the database with misleading user info / multiple email reminders to users etc, hoping it is possible to either develop the plugin or provide some script to prevent this?
As noted below, this should be addressed in WPML.
Hi there, here is Konrad from WPML team. I was not aware of this issue, but I am opening related ticket in our bug tracking system. Paul, if you want to track progress, please open a tciket in our forum, mention url to this ticket and say that our bug tracking system ticket id is comp-2757
Hey Paul! Thanks for the vote here and the details. We've investigated this point a bit and can replicate the behavior you're seeing. I think this is a compatibility detail that would have to live in WCML / WPML, not Memberships. Since it's duplicating the plan posts, it should be detecting the user language to grant access to the right plan when active.
We do have a filter that runs before granting a membership upon user registration (see `wc_memberships_grant_access_to_free_membership`); WPML should make use of that to compare the customer set language with the matching plan of the same language and only grant a membership to the matching translated plan.