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
|
@@ 306-309 (lines=4) @@
|
| 303 |
|
*/ |
| 304 |
|
public static function is_enabled_jetpack_recurring_payments() { |
| 305 |
|
// For WPCOM sites. |
| 306 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
| 307 |
|
$site_id = get_current_blog_id(); |
| 308 |
|
return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
// For Jetpack sites. |
| 312 |
|
return Jetpack::is_active() && ( |
modules/contact-form/grunion-contact-form.php 1 location
|
@@ 1593-1596 (lines=4) @@
|
| 1590 |
|
*/ |
| 1591 |
|
function contact_form_integrations_enabled() { |
| 1592 |
|
// For WPCOM sites |
| 1593 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
| 1594 |
|
$site_id = $this->get_blog_id(); |
| 1595 |
|
return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
| 1596 |
|
} |
| 1597 |
|
// For all Jetpack sites |
| 1598 |
|
return Jetpack::is_active() && Jetpack_Plan::supports( 'contact-form-integrations'); |
| 1599 |
|
} |