Created
December 7, 2017 03:41
Star
You must be signed in to star a gist
Remove checkout fields from WooCommerce Checkou
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
this code doesn't work with me??