Skip to content

Instantly share code, notes, and snippets.

@cryptexvinci
Created March 13, 2017 12:02
Show Gist options
  • Save cryptexvinci/60413e92d6305e27559a1828b14d5490 to your computer and use it in GitHub Desktop.
Save cryptexvinci/60413e92d6305e27559a1828b14d5490 to your computer and use it in GitHub Desktop.
Remove billing phone number field from WooCommerce checkout page.
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