Home Forums Newsletter Plugin Support How to set {Name} by subscribing with wp_register ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #20365

    I’m using your cool plugin, but I’ve got some problems with the name of my subscribers. I want to use {name} shortcode in my newsletters, but the names are not automatically set when subscribers uses to subscribe by the wp register form. (It works fine when they subscribe with the newsletter register form).
    Is there any way to make the name of the wp_users and the newsletter users similar ? Is there any way to get the php code which define the subscriber name ? With this I’ll can make a script making wp_name and subscriber name similar.

    Thanks, Mathias


    Actually wordpress subscription does not collect the name. If yours does probably it’s a custom wp registration. Not?


    Yes I do. My question was not really clear. Is there some way to manually set the newsletter subscribers informations, using php code ? I’m thinking about some code like this :

    $users = get_users();
    $NewsletterSubscribers = get_newsletter_subscribers();

    foreach($users as $user){
    foreach($NewsletterSubscribers as $NewsletterSubscriber){
    if($user->email == $NewsletterSubscriber->email){
    update_newsletter_subscriber_option($NewsletterSubscriber->ID, ‘last name’, $user->last_name);

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.