Created
March 13, 2017 12:02
-
-
Save cryptexvinci/60413e92d6305e27559a1828b14d5490 to your computer and use it in GitHub Desktop.
Remove billing phone number field from WooCommerce 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
add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_phone' ); | |
function custom_remove_woo_checkout_phone( $fields ) { | |
// remove billing phone number | |
unset($fields['billing']['billing_phone']); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment