SHARE
TWEET

Untitled

a guest Oct 19th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
  4.  
  5. function custom_override_checkout_fields( $fields ) {
  6.  
  7. unset($fields['billing']['billing_first_name']);
  8. unset($fields['billing']['billing_last_name']);
  9. unset($fields['billing']['billing_company']);
  10. unset($fields['billing']['billing_address_1']);
  11. unset($fields['billing']['billing_address_2']);
  12. unset($fields['billing']['billing_city']);
  13. unset($fields['billing']['billing_postcode']);
  14. unset($fields['billing']['billing_country']);
  15. unset($fields['billing']['billing_state']);
  16. unset($fields['billing']['billing_phone']);
  17. unset($fields['order']['order_comments']);
  18. unset($fields['account']['account_username']);
  19.  
  20.     return $fields;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top