WordPress – How to display custom WooCommerce billing fields based on product IDs
I want to show/hide custom fields on the checkout page based on Product IDs. Therefore, I am using the following code: function display_custom_checkout_fields_based_on_product( $fields ) { $product_ids_participating_location = array( 5503 ); $product_ids_toxicology = array( 5453, 5454, 5455 ); $product_ids_artificial_intelligence =…