• Resolved Artifakt Digital

    (@artifaktcom)


    Hey there,

    We’re looking to connect Subscribe2 to Jetpack. Essentially thinking that we could have a field on the form that adds them to the subscription list if they select ‘yes’ to say they want to subscribe to it. Have any ideas to point us in the right direction for that?

    Thanks!

    http://wordpress.org/plugins/subscribe2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • @artifaktcom,

    I’m confused, in the title of the thread you talk about Gravity forms but in the body of the post it’s Jetpack. What are you trying to do?

    Thread Starter Artifakt Digital

    (@artifaktcom)

    Oops! Sorry. I meant Gravity Forms not Jetpack.

    @artifaktcom,

    Okay, I don’t use GravityForms but presuming you have some control of the processing that happens when the form is submitted you would need to process the input accordingly.

    If you are adding the user as a public subscriber then call the add() function passing 2 parameters, the email address and ‘true’ to ensure immediate addition skipping the confirmation email.

    global $mysubscribe2;
    $mysubscribe2->add($email, true);

    If you are adding them as a registered user then it’s a similar process using the register() function but passing the new user ID.

    global $mysubscribe2;
    $mysubscribe2->register($user_id);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Connecting to Gravity Forms’ is closed to new replies.