diff --git a/includes/data-stores/class-wc-coupon-data-store-cpt.php b/includes/data-stores/class-wc-coupon-data-store-cpt.php index e432a83f9d7..c0cd6250902 100644 --- a/includes/data-stores/class-wc-coupon-data-store-cpt.php +++ b/includes/data-stores/class-wc-coupon-data-store-cpt.php @@ -28,7 +28,7 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat 'discount_type', 'coupon_amount', 'expiry_date', - 'expiry_date_utc', + 'date_expires', 'usage_count', 'individual_use', 'product_ids', @@ -96,7 +96,7 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat 'description' => $post_object->post_excerpt, 'date_created' => strtotime( $post_object->post_date_gmt ), 'date_modified' => strtotime( $post_object->post_modified_gmt ), - 'date_expires' => metadata_exists( 'post', $coupon_id, 'expiry_date_utc' ) ? get_post_meta( $coupon_id, 'expiry_date_utc', true ) : get_post_meta( $coupon_id, 'expiry_date', true ), + 'date_expires' => metadata_exists( 'post', $coupon_id, 'date_expires' ) ? get_post_meta( $coupon_id, 'date_expires', true ) : get_post_meta( $coupon_id, 'expiry_date', true ), 'discount_type' => get_post_meta( $coupon_id, 'discount_type', true ), 'amount' => get_post_meta( $coupon_id, 'coupon_amount', true ), 'usage_count' => get_post_meta( $coupon_id, 'usage_count', true ), @@ -181,7 +181,7 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat 'usage_limit_per_user' => 'usage_limit_per_user', 'limit_usage_to_x_items' => 'limit_usage_to_x_items', 'usage_count' => 'usage_count', - 'expiry_date_utc' => 'date_expires', + 'date_expires' => 'date_expires', 'free_shipping' => 'free_shipping', 'product_categories' => 'product_categories', 'exclude_product_categories' => 'excluded_product_categories',