Created
March 13, 2017 16:40
-
-
Save cryptexvinci/5b11715998ad08720c25a43cf2382dd2 to your computer and use it in GitHub Desktop.
Make the required checkout fields optional.
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
// WooCommerce Remove Required Checkout Fields | |
add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields_required' ); | |
function custom_wc_checkout_fields_required( $fields ) { | |
$fields['billing']['billing_phone']['required'] = false; | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment