Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove checkout fields from WooCommerce Checkou
<?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/
@Mona-Abdelkader

This comment has been minimized.

Copy link

Mona-Abdelkader commented Jun 26, 2018

Hi,
this code doesn't work with me??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.