do_action ( 'jetpack_subscriptions_form_submission', string $result )

Fires on each subscription form submission.

Source file: modules/subscriptions.php

View in GitHub



(string) Result of form submission: success, invalid_email, already, error.


Since: Jetpack 3.7.0


In the example below, we’ll use the action to trigger a redirection to a specific page as soon as a reader successfully submits their email address in Jetpack’s Subscription form:

function jeherve_custom_sub_redirect_page( $result ) {
    if ( 'success' === $result ) {
        $thanks_page = 'thank-you';
        wp_safe_redirect( $thanks_page );
add_action( 'jetpack_subscriptions_form_submission', 'jeherve_custom_sub_redirect_page' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s