Change user role to “B2B” upon user registration (but remain un-approved)
-
Hi admin, I followed your guide (https://woocommerce-b2b-plugin.com/docs/how-to-use-wp-roles-with-b2bking/) and have successfully added B2BKing’s user roles to WordPress.
I also have a page with the wholesale login / registration form, using the shortcode – [b2bking_b2b_registration registration_role_id=18916]. The URL for the “B2B” user role is – …/wp-admin/post.php?post=18916&action=edit
Currently, when a user registers, it is “unapproved” and has the user role of “Customer”.
After it is approved, the user then only has the user role of “B2B” + “Customer”
Question: When the user signs up via the wholesale registration page, how can the user role be “B2B” immediately (and not “Customer”) but remain “unapproved”? Is there a way to implement this via functions.php?
- The topic ‘Change user role to “B2B” upon user registration (but remain un-approved)’ is closed to new replies.