Remove filter to stop autologin when new customer registered?
-
Hello,
I am trying to stop Woocommerce from auto-logging in newly registered customers. I identified the filter ‘woocommerce_registration_auth_new_customer’ in function process_registration in class WC_Form_Handlerbut have been unable to remove the filter. I am not sure what to use as the tag and what to use as the function per the documentation for remove_filter. I’ve tried many permutations, such as:
remove_filter('woocommerce_registration_auth_new_customer', 'wc_set_customer_auth_cookie', 20);
and
remove_filter('wp_loaded', 'woocommerce_registration_auth_new_customer', 20);
I wonder if anyone could give me a tip on how to proceed?
- The topic ‘Remove filter to stop autologin when new customer registered?’ is closed to new replies.