You can use the following hook to chnage woocomerce subscriber.
add_filter('woocommerce_new_customer_data', 'wc_assign_custom_role', 10, 1);
For moretutorials you can visit our articles or visit questions page http://www.webetutorial.com/question/replaces-customer-role-of-woocommerce-uses-by-default-with-a-subscriber-role/.You can join us on twitter https://twitter.com/webetutorialcom or subscribe us on YouTube https://www.youtube.com/channel/UCOOwypftpLyhJxeF-tUQXSw/videos?view_as=subscriber for more webdesign & development tutorials.
No comments:
Post a Comment