Conditionally customizing WooCommerce checkout fields
问题 I am trying to modify WooCommerce check out fields. There are two points I want to reach. Conditional fields I want to make conditional fields for different shipping type in shipping section. To reach this point, Javascript is used. Administrator can edit the custom fields in the order on back-end As a result, I write the code as below. However, I met a problem. My javascript cannot work on the front-end. Does anybody can help me? //修改check out shipping field add_action( 'woocommerce_before