Created
October 8, 2015 21:11
-
-
Save omurphy27/796dfa3cf981b3e222ca to your computer and use it in GitHub Desktop.
WooCommerce - make phone number not required on checkout page
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
// make phone number at checkout not required | |
add_filter( 'woocommerce_billing_fields', 'jwd_filter_phone' ); | |
function jwd_filter_phone( $address_fields ) { | |
$address_fields['billing_phone']['required'] = false; | |
return $address_fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment