Last active
October 3, 2019 07:57
-
-
Save ncyhere/6d7a1f2cf5977341154030edc9000020 to your computer and use it in GitHub Desktop.
Remove Company Input Field from WooCommerce Checkout
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
/** | |
* @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