Change Woocommerce Default User Registration Role
Hi, got the solution for changing the Woocommerce default user registration role from “customer” to any other role. Add following function to your theme function php file and replace “subscriber” to your own user roles like Administrator, Editor, shop manager, or your custom user role.
/** Here changing 'customer' role to 'subscriber'.**/ add_filter('woocommerce_new_customer_data', 'wc_assign_custom_role', 10, 1); function wc_assign_custom_role($args) { $args['role'] = 'subscriber'; return $args; } /** For more wordpress tips visit www.creativetweets.com**/