Created
September 4, 2019 17:18
-
-
Save LMNTL/42c7973caa6c1a76fbfbfd581a53acb7 to your computer and use it in GitHub Desktop.
don't require the "State" field at checkout and hide it
This file contains hidden or 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
.pmpro_checkout-field-bstate { | |
display: none; | |
} |
This file contains hidden or 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
function my_pmpro_required_billing_fields($fields) | |
{ | |
if(is_array($fields) && isset($fields['bstate')) | |
{ | |
unset($fields['bstate']); | |
} | |
return $fields; | |
} | |
add_action('pmpro_required_billing_fields', 'my_pmpro_required_billing_fields'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment