bookmark_bordergform_post_subscription_started

Description

Triggered after a new subscription is created.

Usage

add_action( 'gform_post_subscription_started', 'my_function', 10, 2 );

Parameters

  • $entry Entry Object

    The entry object.

  • $subscription array

        $action = array(
            'type'             => '',
            'amount'           => '',
            'transaction_type' => '',
            'transaction_id'   => '',
            'subscription_id'  => '',
            'entry_id'         => '',
            'payment_status'   => '',
            'note'             => '',
        );
    

Examples

function my_function() {
    //Do something here
}
add_action( 'gform_post_subscription_started', 'my_function', 10, 2 );

Source Code

do_action( 'gform_post_subscription_started', $entry, $subscription );

This action hook is located in GFPaymentAddOn::start_subscription() in includes/addon/class-gf-payment-addon.php