Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional additional list checkbox for user #17

Open
niklasfjeldberg opened this issue Mar 19, 2020 · 1 comment
Open

Optional additional list checkbox for user #17

niklasfjeldberg opened this issue Mar 19, 2020 · 1 comment
Assignees

Comments

@niklasfjeldberg
Copy link

It would be nice to have a checkbox where the user can choose to subscribe to an additional list.

The Sendy API (https://sendy.co/api) says it's possible to add a user to multiply lists at once.

@mauryaratan
Copy link
Owner

@lushkant Can you take on this one?

We simply need to loop through the lists and subscribe the user to specific lists.

embed-sendy/embed-sendy.php

Lines 549 to 550 in 88c23e7

self::$sendy_api->setListId( filter_var( wp_unslash( $_POST['list'] ) ) );
$response = self::$sendy_api->subscribe( $data );

  • Shortcode attribute should take multiple lists separated by a comma
  • Alter the same behavior for Gutenberg Block
  • Tweak front-end form to display each list by name, along with a checkbox
  • See if we can safely include Add the "Checkbox hack" for a better custom form #18 without creating a conflict between different themes

Let me know if you have any questions or need any clarification.

@lushkant lushkant self-assigned this Jun 22, 2020
@mauryaratan mauryaratan assigned mauryaratan and unassigned lushkant Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants