Hey,
Washi, my colleague fixed the issue just replace
if(!empty($form_data['your-subscription'])) {
$user_helper = &WYSIJA::get('user','helper');
$user_helper->addSubscriber($list_data);
}
with
if( ! empty($form_data['your-subscription'][0]) ) {
$user_helper = &WYSIJA::get('user','helper');
$user_helper->addSubscriber($list_data);
}
Hey,
For those who tried to use Rumores’ and broke their site, all you need to do is add a semicolon ->;<- after this line
$cf7 = WPCF7_Submission::get_instance()
becomes
$cf7 = WPCF7_Submission::get_instance();
Unfortunately I can’t specify to which list I’d like people to subscribe to.
I’ll try and work it out using Rumores’ code snippet as a base.
Good luck everyone