Support » Plugin: MailPoet - emails and newsletters in WordPress » API issue with name.firstname during creation ?

  • Resolved Christian Denat

    (@yakafaucon)


    Hello la team,

    I’m using the API to link Forminator forms with Mailpoet subscription Management.
    All is working nice, ie, I’m able to subscribe an existing user to a list, or able to create a new one and subscribed it to the list.

    But when I create a new one, only the email is used. I push last_name and first_name fields but they are not added to the subscriber…

    Here is an example of $subscriber array I have created

    Array
    (
        [email] => eeeeechristian.denat@orange.fr
        [cf_1] => 1
        [last_name ] => Denat
        [first_name ] => Christian
    )

    and the PHP is

    
    $mailpoet->addSubscriber( $subscriber, [ $this->mailpoet_form_id ] );
    

    Any idea of such issue ?

    Thank you

    Christian

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.