Skip to content

Commit

Permalink
Update/wpcomsh package to sync growth constant features (#40187)
Browse files Browse the repository at this point in the history
* Add growth plans to features in wpcomsh to sync with wpcom

* changelog

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11841216776

Upstream-Ref: Automattic/jetpack@b5dede3
  • Loading branch information
CodeyGuyDylan authored and matticbot committed Nov 14, 2024
1 parent 3344044 commit 76ec536
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This is an alpha version! The changes listed here are not final.

### Added
- Add Growth to features in wpcomsh package
- Enable test coverage.
- WordPress.com plan features: Added cornerstone 10 pages feature
- WordPress.com plan features: Added studio-sync feature
Expand Down
11 changes: 11 additions & 0 deletions wpcom-features/class-wpcom-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class WPCOM_Features {
private const JETPACK_SECURITY_DAILY_MONTHLY = 'jetpack_security_daily_monthly'; // 2011
private const JETPACK_SECURITY_REALTIME = 'jetpack_security_realtime'; // 2012
private const JETPACK_SECURITY_REALTIME_MONTHLY = 'jetpack_security_realtime_monthly'; // 2013
private const JETPACK_GROWTH_BI_YEARLY = 'jetpack_growth_bi_yearly'; // 2023
private const JETPACK_GROWTH_YEARLY = 'jetpack_growth_yearly'; // 2022
private const JETPACK_GROWTH_MONTHLY = 'jetpack_growth_monthly'; // 2021
private const JETPACK_COMPLETE_BI_YEARLY = 'jetpack_complete_bi_yearly'; // 2035
private const JETPACK_COMPLETE = 'jetpack_complete'; // 2014
private const JETPACK_COMPLETE_MONTHLY = 'jetpack_complete_monthly'; // 2015
Expand Down Expand Up @@ -196,6 +199,7 @@ class WPCOM_Features {
// WPCOM "Level 2": Groups of level 1s.
private const WPCOM_BLOGGER_PLANS = array( self::BLOGGER_BUNDLE, self::BLOGGER_BUNDLE_2Y );
private const WPCOM_PERSONAL_PLANS = array( self::PERSONAL_BUNDLE, self::PERSONAL_BUNDLE_MONTHLY, self::PERSONAL_BUNDLE_2Y, self::PERSONAL_BUNDLE_3Y );
private const JETPACK_GROWTH_PLANS = array( self::JETPACK_GROWTH_BI_YEARLY, self::JETPACK_GROWTH_YEARLY, self::JETPACK_GROWTH_MONTHLY );
private const WPCOM_STARTER_PLANS = array( self::STARTER_PLAN );
private const WPCOM_PREMIUM_PLANS = array( self::BUNDLE_PRO, self::VALUE_BUNDLE, self::VALUE_BUNDLE_MONTHLY, self::VALUE_BUNDLE_2Y, self::VALUE_BUNDLE_3Y );
private const WPCOM_PRO_PLANS = array( self::PRO_PLAN, self::PRO_PLAN_MONTHLY, self::PRO_PLAN_2Y );
Expand Down Expand Up @@ -1024,6 +1028,7 @@ class WPCOM_Features {
self::WPCOM_PREMIUM_AND_HIGHER_PLANS,
self::JETPACK_PREMIUM_AND_HIGHER,
self::JETPACK_CREATOR_PLANS,
self::JETPACK_GROWTH_PLANS,
),
self::SITE_PREVIEW_LINKS => array(
self::WPCOM_BUSINESS_AND_HIGHER_PLANS,
Expand All @@ -1049,6 +1054,7 @@ class WPCOM_Features {
self::BUNDLE_ENTERPRISE,
self::JETPACK_SOCIAL_V1_PLANS,
self::JETPACK_SOCIAL_PLANS,
self::JETPACK_GROWTH_PLANS,
),
self::SOCIAL_IMAGE_GENERATOR => array(
array(
Expand All @@ -1059,6 +1065,7 @@ class WPCOM_Features {
self::BUNDLE_ENTERPRISE,
self::JETPACK_SOCIAL_V1_PLANS,
self::JETPACK_SOCIAL_PLANS,
self::JETPACK_GROWTH_PLANS,
),
),
self::SOCIAL_MASTODON_CONNECTION => array(
Expand Down Expand Up @@ -1145,6 +1152,7 @@ class WPCOM_Features {
),
self::STATS_FREE => array(
self::JETPACK_STATS_PLANS,
self::JETPACK_GROWTH_PLANS,
),
self::STATS_PAID => array(
array(
Expand All @@ -1159,6 +1167,7 @@ class WPCOM_Features {
self::JETPACK_STATS_BI_YEARLY,
self::JETPACK_STATS_YEARLY,
self::JETPACK_COMPLETE_PLANS,
self::JETPACK_GROWTH_PLANS,
),
self::STUDIO_SYNC => array(
self::WPCOM_BUSINESS_AND_HIGHER_PLANS,
Expand All @@ -1173,6 +1182,7 @@ class WPCOM_Features {
self::JETPACK_SOCIAL_ADVANCED_PLANS,
self::JETPACK_SOCIAL_V1_PLANS,
self::JETPACK_CREATOR_PLANS,
self::JETPACK_GROWTH_PLANS,
self::EXCLUDE_PLANS => array(
self::WPCOM_MIGRATION_TRIAL_PLANS,
self::WPCOM_HOSTING_TRIAL_PLANS,
Expand Down Expand Up @@ -1383,6 +1393,7 @@ class WPCOM_Features {
self::WPCOM_PREMIUM_AND_HIGHER_PLANS,
self::JETPACK_PREMIUM_AND_HIGHER,
self::JETPACK_CREATOR_PLANS,
self::JETPACK_GROWTH_PLANS,
),

/*
Expand Down

0 comments on commit 76ec536

Please sign in to comment.