Hide Post code fields

Please advise how to hid Post Code field on a Woocommerce checkout page

  • Nastia
    • Support Rock Star

    Hello skc

    Hope all is well!

    I've added the following PHP code into the theme's functions.php file to hide the postcode filed. I've checked and it worked on my site and on your site.

    add_filter( 'woocommerce_checkout_fields' , 'bbloomer_remove_billing_postcode_checkout' );
    
    function bbloomer_remove_billing_postcode_checkout( $fields ) {
    unset($fields['billing']['billing_postcode']);
    return $fields;
    }

    Please let us know if you have any further questions!

    Kind regards,
    Nastia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.