WooCommerce custom billing fields on email address
I finally got it to work using this code: I’m using a php class to make an organized workflow so don’t mind the public on functions… First I register my filters like this: public function registerFilters() { add_filter( ‘woocommerce_default_address_fields’, array($this, ‘woo_new_default_address_fields’), 10, 2); add_filter(‘woocommerce_order_formatted_billing_address’, array($this, ‘woo_custom_order_formatted_billing_address’), 10, 2); add_filter(‘woocommerce_formatted_address_replacements’, array($this, ‘myFunction’), 10, 2); add_filter(‘woocommerce_localisation_address_formats’, array($this, … Read more