| @@ 115-118 (lines=4) @@ | ||
| 112 | } | |
| 113 | ||
| 114 | // For WPCOM sites | |
| 115 | 		if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { | |
| 116 | $site_id = $this->get_blog_id(); | |
| 117 | return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); | |
| 118 | } | |
| 119 | ||
| 120 | // For all Jetpack sites | |
| 121 | return Jetpack::is_active() && Jetpack_Plan::supports( 'simple-payments'); | |
| @@ 310-313 (lines=4) @@ | ||
| 307 | */ | |
| 308 | 	public static function is_enabled_jetpack_recurring_payments() { | |
| 309 | // For WPCOM sites. | |
| 310 | 		if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { | |
| 311 | $site_id = get_current_blog_id(); | |
| 312 | return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); | |
| 313 | } | |
| 314 | ||
| 315 | // For Jetpack sites. | |
| 316 | return Jetpack::is_active() && ( | |