Skip to content

Instantly share code, notes, and snippets.

@ncyhere
Last active October 3, 2019 07:57
Show Gist options
  • Save ncyhere/6d7a1f2cf5977341154030edc9000020 to your computer and use it in GitHub Desktop.
Save ncyhere/6d7a1f2cf5977341154030edc9000020 to your computer and use it in GitHub Desktop.
Remove Company Input Field from WooCommerce Checkout
/**
* @snippet Remove Company Input field from WooCommerce Checkout Page
* @author NCY DESIGN https://wordpress.ncy.design
* @compatible WooCommerce 3.7.0
*/
add_filter( 'woocommerce_checkout_fields' , 'ncydesign_remove_woocommerce_checkout_fields' );
function ncydesign_remove_woocommerce_checkout_fields( $fields ) {
unset($fields['billing']['billing_company']);
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment