From e2ac97d56821d44be5a4560b384b83c64ea3a007 Mon Sep 17 00:00:00 2001 From: Brent Nef Date: Fri, 6 Oct 2023 02:55:19 -0700 Subject: [PATCH] Earn/fix/memberships meta product (#33323) * Fix `jetpack_memberships_product_id` meta sync. * changelog * Fix lint. --- .../jetpack/changelog/earn-fix-memberships-meta-product_id | 4 ++++ .../jetpack/modules/memberships/class-jetpack-memberships.php | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 projects/plugins/jetpack/changelog/earn-fix-memberships-meta-product_id diff --git a/projects/plugins/jetpack/changelog/earn-fix-memberships-meta-product_id b/projects/plugins/jetpack/changelog/earn-fix-memberships-meta-product_id new file mode 100644 index 0000000000000..ed35b2ed6e818 --- /dev/null +++ b/projects/plugins/jetpack/changelog/earn-fix-memberships-meta-product_id @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +Add jetpack_memberships_product_id to the list of post meta to sync. diff --git a/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php b/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php index c32d2a1c3eced..d591942ae3717 100644 --- a/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php +++ b/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php @@ -162,6 +162,9 @@ private static function get_plan_property_mapping() { 'site_subscriber' => array( 'meta' => $meta_prefix . 'site_subscriber', ), + 'product_id' => array( + 'meta' => $meta_prefix . 'product_id', + ), ); return $properties; }