How to get Woocommerce Variation ID?
问题 I've already had this code on functions.php This code is to add a new field on each product variation to have datetime input field, so variations would automatically expired when the current date is past the input date. // Add Variation Settings add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 ); // Save Variation Settings add_action( 'woocommerce_save_product_variation', 'save_variation_settings_fields', 10, 2 ); //Create New fields for