How To Add Code Snippets
Here’s a link to my other post about adding code snippets
// Hook in
add_filter( 'woocommerce_checkout_fields' , 'wooace_custom_override_checkout_fields' );
// Our hooked in function - $fields is passed via the filter!
function wooace_custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_phone']);
unset($fields['order']['order_comments']);
return $fields;
}
// Removes Order Notes Title - Additional Information & Notes Field
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );
WooCommerce Checkout Fields
- Billing
billing_first_namebilling_last_namebilling_companybilling_address_1billing_address_2billing_citybilling_postcodebilling_countrybilling_statebilling_emailbilling_phone
- Shipping
shipping_first_nameshipping_last_nameshipping_companyshipping_address_1shipping_address_2shipping_cityshipping_postcodeshipping_countryshipping_state
- Account
account_usernameaccount_passwordaccount_password-2
- Order
order_comments
15 Day Free Trial Of Woo Ace Support
Why not take a 15 day free trial of Woo Ace and we will reduce friction on your checkout for you.
