@@ 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'); |
@@ 367-370 (lines=4) @@ | ||
364 | */ |
|
365 | public static function is_enabled_jetpack_recurring_payments() { |
|
366 | // For WPCOM sites. |
|
367 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
|
368 | $site_id = get_current_blog_id(); |
|
369 | return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
|
370 | } |
|
371 | ||
372 | // For Jetpack sites. |
|
373 | return Jetpack::is_active() && ( |