Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* @Title: WooCommerce Edit Checkout Billing Address fields
* @Author: Mina Pansuriya
* @Website:
add_filter( 'woocommerce_checkout_fields' , 'pbs_woo_customize_checkout_billing_address_fields' );
function pbs_woo_customize_checkout_billing_address_fields( $fields ) {
// Remove Billing Company Field
// Rename Label of for Order Comments
$fields['order']['order_comments']['label'] = 'Personalized Message';
// Change Placeholder text of Order Comments
$fields['order']['order_comments']['placeholder'] = 'Add message here';
// Make postcode non-required fieid
$fields['billing']["billing_postcode"]['required'] = false;
// Remove Billing Address 2 field
return $fields;
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.