woocommerce checkout conditional fields based on radio buttons choices
问题 In my wordpress website I need to add some conditional fields in the woocommerce checkout page. I have already created the 2 fields and I now I need one field to show up based on the choices made on the other one. Field one's name (the parent field): billing_checkbox_cf Field two's name: billing_cf_in Based on "WooCommerce conditional custom checkout fields" answer thread, here's my code: add_action( 'woocommerce_after_checkout_form', 'cbi_cf_conditionally_hide_show', 6); function cbi_cf