Wordpress Contact Form 7 manually add Aweber subscribers in PHP
Add this function to the Contact Form 7 functions.php file in the /wp-content/plugins/contact-form-7/includes folder. Works with Contact Form 7 v3.9 upwards Change the details to your Aweber list name, meta ad tracking, form id etc. The redirect and redirect_onlist doesn't actually go the page specified (can be removed if you like) Note: the user still has to confirm the subscription via email to be successfully added to the Aweber list function process_aweber($cf7) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $name = $_POST['your-name']; $email = $_POST['your-email']; $str= 'meta_web_form_id='.urlencode('000000000'). '&meta_split_id='.urlencode(''). '&meta_redirect_onlist='.urlencode('http://www.yourdomain.co.za'). '&meta_tooltip='.urlencode(''). '&listname='.urlencode('yourListIDhere'). ...