Support » Plugin: Contact Form 7 Extension For Mailchimp » API Key setting not dynamic (fix inside)

  • Hello, great plugin! I have multiple Mailchimp accounts for one website and want to dynamically choose on which one to add the new subscriber instead of having one static API key in the settings of the contact form. For this reason I chose the extension “Contact Form 7 Dynamic Text Extension” which works very well, except for the API key.
    After looking into the code I discovered that all the fields (list ID, Name, E-Mail) are dynamic (pull the shortcode content before proccessing it further) except the API key. If you want to have it dynamic like the others go to lib/functions.php and replace “$api = $cf7_mch[‘api’];” with “$api = cf7_mch_tag_replace( $regex, $cf7_mch[‘api’], $submission->get_posted_data() );” on row 244. Works well now. Maybe the author wants to include this in the next update?

  • The topic ‘API Key setting not dynamic (fix inside)’ is closed to new replies.