Last active
July 12, 2019 07:48
-
-
Save imran-khan1/b5db347de3ee6dd20cb2aa014aa74116 to your computer and use it in GitHub Desktop.
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 | |
/* | |
* Remove some checkout billing fields | |
*/ | |
function ci_woo_billing_fields($fields){ | |
unset( $fields["billing_country"] ); | |
unset( $fields["billing_company"] ); | |
unset( $fields["billing_address_1"] ); | |
unset( $fields["billing_address_2"] ); | |
unset( $fields["billing_city"] ); | |
unset( $fields["billing_state"] ); | |
unset( $fields["billing_postcode"] ); | |
unset( $fields["billing_phone"] ); | |
return $fields; | |
} | |
add_filter( 'woocommerce_billing_fields', 'ci_woo_billing_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment