modules/simple-payments/simple-payments.php 1 location
|
@@ 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'); |
modules/memberships/class-jetpack-memberships.php 1 location
|
@@ 299-302 (lines=4) @@
|
| 296 |
|
*/ |
| 297 |
|
public static function is_enabled_jetpack_recurring_payments() { |
| 298 |
|
// For WPCOM sites. |
| 299 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
| 300 |
|
$site_id = get_current_blog_id(); |
| 301 |
|
return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
// For all Jetpack sites. |
| 305 |
|
return Jetpack::is_active() && Jetpack_Plan::supports( 'recurring-payments' ); |