WordPress.org

Ready to get started?Download WordPress

Forums

Newsletter
[resolved] Adding a Subscriber Through PHP (5 posts)

  1. AccessWinnipeg
    Member
    Posted 1 year ago #

    Hello,

    I have a third party form that i created where uses can select a 'checkbox' to be added to the mailing list.

    The third party form plugin allows me to execute PHP if the checkbox is selected.

    Can you provide a PHP snippet or a function that will allow me add a subscriber as 'CONFIRMED' into the newsletter database?

    Thanks,

    http://wordpress.org/plugins/newsletter/

  2. schmi85
    Member
    Posted 1 year ago #

    I have the exact same problem! If somebody knows how to do that, it would be nice!

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    As per the Forum Welcome, please post your own topic.

  4. schmi85
    Member
    Posted 1 year ago #

    thank you for that nice advice, I have not known this

  5. Stefano Lissa
    Member
    Plugin Author

    Posted 1 year ago #

    You can try to use the save_user method of the plugin, passing over an array with the database field names.

    $newsletter->save_user(array...);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.