Skip to content

Commit ceb4c78

Browse files
authored
Add WOO_HOSTED plan features (#45687)
This allows CIAB sites with woo_hosted_xyz to do domain mapping/etc.
1 parent 2f4ef1c commit ceb4c78

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: added
3+
4+
Added domain features for woo_hosted plans

projects/plugins/wpcomsh/wpcom-features/class-wpcom-features.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ class WPCOM_Features {
7272
private const WPCOM_WOOEXPRESS_MEDIUM_BUNDLE_YEARLY = 'wooexpress-medium-bundle-yearly'; // 1055
7373
private const WPCOM_WOOEXPRESS_SMALL_BUNDLE_MONTHLY = 'wooexpress-small-bundle-monthly'; // 1054
7474
private const WPCOM_WOOEXPRESS_SMALL_BUNDLE_YEARLY = 'wooexpress-small-bundle-yearly'; // 1056
75+
private const WOO_HOSTED_BASIC_PLAN_MONTHLY = 'woo_hosted_basic_plan_monthly'; // 4001
76+
private const WOO_HOSTED_BASIC_PLAN_YEARLY = 'woo_hosted_basic_plan_yearly'; // 4002
77+
private const WOO_HOSTED_PRO_PLAN_MONTHLY = 'woo_hosted_pro_plan_monthly'; // 4003
78+
private const WOO_HOSTED_PRO_PLAN_YEARLY = 'woo_hosted_pro_plan_yearly'; // 4004
7579
private const WPCOM_MIGRATION_TRIAL_BUNDLE_MONTHLY = 'wp_bundle_migration_trial_monthly'; // 1057
7680
private const WPCOM_HOSTING_TRIAL_BUNDLE_MONTHLY = 'wp_bundle_hosting_trial_monthly'; // 1058
7781
private const WPCOM_STAGING_PRODUCT = 'wp_staging_site_lifetime'; // 1060
@@ -241,6 +245,7 @@ class WPCOM_Features {
241245
private const WPCOM_ECOMMERCE_TRIAL_PLANS = array( self::ECOMMERCE_TRIAL_BUNDLE_MONTHLY );
242246
private const WPCOM_WOOEXPRESS_MEDIUM_PLANS = array( self::WPCOM_WOOEXPRESS_MEDIUM_BUNDLE_MONTHLY, self::WPCOM_WOOEXPRESS_MEDIUM_BUNDLE_YEARLY );
243247
private const WPCOM_WOOEXPRESS_SMALL_PLANS = array( self::WPCOM_WOOEXPRESS_SMALL_BUNDLE_MONTHLY, self::WPCOM_WOOEXPRESS_SMALL_BUNDLE_YEARLY );
248+
private const WOO_HOSTED_PLANS = array( self::WOO_HOSTED_BASIC_PLAN_MONTHLY, self::WOO_HOSTED_BASIC_PLAN_YEARLY, self::WOO_HOSTED_PRO_PLAN_MONTHLY, self::WOO_HOSTED_PRO_PLAN_YEARLY );
244249
private const GOOGLE_WORKSPACE_PRODUCTS = array( self::WP_GOOGLE_WORKSPACE_BUSINESS_STARTER_YEARLY );
245250
private const GSUITE_PRODUCTS = array( self::GAPPS, self::GAPPS_UNLIMITED );
246251
private const WPCOM_TITAN_MAIL_PRODUCTS = array( self::WP_TITAN_MAIL_MONTHLY, self::WP_TITAN_MAIL_YEARLY );
@@ -708,10 +713,12 @@ class WPCOM_Features {
708713
),
709714
self::CUSTOM_DOMAIN => array(
710715
self::WPCOM_BLOGGER_AND_HIGHER_PLANS,
716+
self::WOO_HOSTED_PLANS,
711717
),
712718
self::DOMAIN_MAPPING => array(
713719
self::WPCOM_BLOGGER_AND_HIGHER_PLANS,
714720
self::WPCOM_PRO_PLANS,
721+
self::WOO_HOSTED_PLANS,
715722
),
716723
self::DONATIONS => array(
717724
self::WPCOM_ALL_SITES,
@@ -1161,6 +1168,7 @@ class WPCOM_Features {
11611168
*/
11621169
self::SET_PRIMARY_CUSTOM_DOMAIN => array(
11631170
self::WPCOM_BLOGGER_AND_HIGHER_PLANS,
1171+
self::WOO_HOSTED_PLANS,
11641172
self::YOAST_PREMIUM,
11651173
),
11661174
// Hosting Configuration.

0 commit comments

Comments
 (0)