Last active
December 8, 2020 19:06
-
-
Save luiseduardobraschi/94a9e0574184b4f7cb33da2107e14f06 to your computer and use it in GitHub Desktop.
Remover o campo "sexo" do checkout do WooCommerce com Extra Checkout Fields for Brazil.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_billing_fields', function( $fields ){ | |
unset( $fields['billing_sex'] ); | |
return $fields; | |
}); |
Hi, it's not working anymore...
Hi, @feperrella. Try changing the priority.
add_filter( 'woocommerce_billing_fields', function( $fields ){
unset( $fields['billing_sex'] );
return $fields;
}, 100 ); // <----------
Hi, it's not working anymore...
Hi, @feperrella. Try changing the priority.
add_filter( 'woocommerce_billing_fields', function( $fields ){ unset( $fields['billing_sex'] ); return $fields; }, 100 ); // <----------
Thanks, that did the trick, never thought about that...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it's not working anymore...