I’m working on a WooCommerce project where each user have an ID number. I would like to use the default WooCommerce username field for this user ID. When creating an account, can I automatically generate an account username for the customer based on their user ID? Example: User ID = 101, Auto generated Username = 101 Is it possible? Any
Tag: membership
How can I detect if user has subscribed Memberpress product already
How can I detect if user has already bought a memberpress product. I’m searching something like this: Answer This should be pretty straight forward using MemberPress’ built in capabilities: MemberPress also adds capabilities for each MemberPress Membership so you could also do something like this: In the second example the number 123 is the id of the MemberPress membership.