Last active
February 9, 2018 12:55
-
-
Save albionselimaj/a9ad4ae773b3363d04012bcacd801f24 to your computer and use it in GitHub Desktop.
WooCommerce remove checkout fields
This file contains hidden or 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 | |
add_filter( 'woocommerce_checkout_fields' , function( $fields ) { | |
// List of all checkout fields | |
// @link https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ | |
unset($fields['order']['order_comments']); | |
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