test_jetpack_is_supported_jetpack_recurring_payments

test_jetpack_is_supported_jetpack_recurring_payments

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.12.1.1

apply_filters('test_jetpack_is_supported_jetpack_recurring_payments') is found 1 times:

  • /modules/memberships/class-jetpack-memberships.php line 511
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    */
    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.