test_jetpack_is_supported_jetpack_recurring_payments
test_jetpack_is_supported_jetpack_recurring_payments
Appears in: jetpack.11.8, jetpack.11.8.4, jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1
Hook Type: filter
Displaying hooks found in version: jetpack.12.1.1apply_filters('test_jetpack_is_supported_jetpack_recurring_payments') is found 1 times:
- /modules/memberships/class-jetpack-memberships.php line 511
*/ public static function is_supported_jetpack_recurring_payments() { $api_available = ( ( defined( 'IS_WPCOM' ) && IS_WPCOM ) || Jetpack::is_connection_ready() ); $supported_in_plan = Jetpack_Plan::supports( 'recurring-payments' ); return apply_filters( 'test_jetpack_is_supported_jetpack_recurring_payments', $api_available && $supported_in_plan ); } /** * Whether site has any paid plan. * * @param string $type - Type of a plan for which site is configured. For now supports empty and newsletter.