• Resolved matgargano

    (@matgargano)


    I looked through the documentation and couldn’t find anything but wanted to double check before I look for another solution. I have a very special usecase where i want to have highly specific newsletters for highly specific (repeatable) events, but after the event ends I want to clear out the list and create a new list for the next event.

    Is there any exposed programmatically way to create or delete lists on the fly? Subscribing is covered per the documentation.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    lists are options of the subscriber. you can run a query removing the option from a subscriber:

    update wp_newsletter set list_N=0

    Thread Starter matgargano

    (@matgargano)

    Hi. Can you give me a bit more concrete a of an example? Eg I want to create a list called Reservation 7/15

    Thread Starter matgargano

    (@matgargano)

    Checking back in here

    Thread Starter matgargano

    (@matgargano)

    @satollo this was marked as resolved, can you please advise as it was not resolved ??

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, you cannot create a list. You can define what is a list “X” in the lists configuration panel. Then the field list_X on newsletter subscriber table tells if the subscriber is in that list (1) or not (0).

    Please, check the lists panel and the database structure. If you’re looking for API to interact with lists, there are not, sorry.

    Stefano.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Programmatically create and delete lists’ is closed to new replies.