Skip to content

Commit

Permalink
Simplify todo note
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellGarceau committed Jan 9, 2025
1 parent 01c00b9 commit 6181802
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,8 @@ function mailchimp_sf_signup_submit() {
return false;
}

// A former subscriber is trying to resubscribe
// If "Update Existing Subscriber?" is enabled and the user is unsubscribed
// then show them the Mailchimp hosted signup form
if ( get_option( 'mc_update_existing' ) && 'unsubscribed' === $status ) {
// TODO: Make API request to fetch Mailchimp hosted sign up form and display to user
}
// TODO: If get_option( 'mc_update_existing' ) && 'unsubscribed' === $status then
// make an API request to fetch Mailchimp hosted sign up form and display to user

$body = mailchimp_sf_subscribe_body( $merge, $igs, $email_type, $email, $status, get_option( 'mc_double_optin' ) );
$retval = $api->post( $url, $body, 'PUT' );
Expand Down

0 comments on commit 6181802

Please sign in to comment.