@@ 337-340 (lines=4) @@ | ||
334 | */ |
|
335 | public static function is_enabled_jetpack_recurring_payments() { |
|
336 | // For WPCOM sites. |
|
337 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
|
338 | $site_id = get_current_blog_id(); |
|
339 | return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
|
340 | } |
|
341 | ||
342 | // For Jetpack sites. |
|
343 | return Jetpack::is_active() && ( |
@@ 132-135 (lines=4) @@ | ||
129 | } |
|
130 | ||
131 | // For WPCOM sites |
|
132 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) { |
|
133 | $site_id = $this->get_blog_id(); |
|
134 | return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id ); |
|
135 | } |
|
136 | ||
137 | // For all Jetpack sites |
|
138 | return Jetpack::is_active() && Jetpack_Plan::supports( 'simple-payments'); |