Skip to content

Instantly share code, notes, and snippets.

@woogist
Created April 8, 2015 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogist/f8c5918d807513b717cb to your computer and use it in GitHub Desktop.
Save woogist/f8c5918d807513b717cb to your computer and use it in GitHub Desktop.
InterFax Integration: Remove Fax field on checkout page
<?php
// Hook in
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
// Our hooked in function - $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_fax']);
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment