Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_wcbcf_billing_fields( $fields ) {
- global $woocommerce;
- if ($woocommerce->customer->get_country() != 'BR') {
- $fields['billing_state']['required'] = false;
- $fields['billing_cpf']['required'] = false;
- $fields['billing_cpf']['class'] = array('esconde-meu-div');
- }
- return $fields;
- }
- add_filter( 'wcbcf_billing_fields', 'custom_wcbcf_billing_fields' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement