| @@ 138-141 (lines=4) @@ | ||
| 135 | } |
|
| 136 | ||
| 137 | // For WPCOM sites |
|
| 138 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
|
| 139 | $site_id = $this->get_blog_id(); |
|
| 140 | return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
|
| 141 | } |
|
| 142 | ||
| 143 | // For all Jetpack sites |
|
| 144 | return Jetpack::is_active() && Jetpack_Plan::supports( 'simple-payments'); |
|
| @@ 448-451 (lines=4) @@ | ||
| 445 | */ |
|
| 446 | public static function is_supported_jetpack_recurring_payments() { |
|
| 447 | // For WPCOM sites. |
|
| 448 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
|
| 449 | $site_id = get_current_blog_id(); |
|
| 450 | return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
|
| 451 | } |
|
| 452 | // For Jetpack sites. |
|
| 453 | return ( |
|
| 454 | Jetpack::is_active() && |
|