Skip to content

Instantly share code, notes, and snippets.

@ajmorris
Created December 7, 2017 03:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ajmorris/16b85be32f6331c16371a8c27c0a25bc to your computer and use it in GitHub Desktop.
Remove checkout fields from WooCommerce Checkou
<?php
function wc_ninja_remove_checkout_field( $fields ) {
unset( $fields['billing']['billing_company'] );
return $fields;
}
add_filter( 'woocommerce_checkout_fields' , 'wc_ninja_remove_checkout_field' );
// list of fields can be found here, https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
@Mona-Abdelkader
Copy link

Mona-Abdelkader commented Jun 26, 2018

Hi,
this code doesn't work with me??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment