Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created April 8, 2021 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/cdc25fb5fdab5dc2521223e26c16cdde to your computer and use it in GitHub Desktop.
Save stuartduff/cdc25fb5fdab5dc2521223e26c16cdde to your computer and use it in GitHub Desktop.
Remove billing email field from WooCommerce
function custom_override_billing_fields( $fields ) {
unset($fields['billing_email']);
return $fields;
}
add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment