MailChimp Comment Optin
Name value not passed to Mail Chimp (3 posts)

  1. devra
    Posted 4 years ago #

    Thanks for this great plugin. The email address entered in the comment is being added to the MailChimp list just fine. But the name field is not being passed. Is that by design? Or might this be a problem with WordPress 3.4.1?

    And if you do mean to pass the name value, how do you resolve the fact that the WordPress post comment form does not split the name into first and last, whereas Mail Chimp does? Splitting on the first blank character would be better than nothing, but might result in some improper splitting. Life isn't perfect.



  2. Parakoos
    Posted 3 years ago #

    I've got the same problem. Sad to see that the issue is an old one...

  3. Parakoos
    Posted 3 years ago #

    Well, I found the error. This section of the code:

    if ( ! empty( $tgm_mc_comment_data['comment_author_name'] ) )
    	$commenter_name = $tgm_mc_comment_data['comment_author_name'];

    should be

    if ( ! empty( $tgm_mc_comment_data['comment_author'] ) )
    	$commenter_name = $tgm_mc_comment_data['comment_author'];


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MailChimp Comment Optin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic