Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to add your email to multiple newsletter lists
<?php
/**
* Plugin Name: WP Popups newsletter lists
* Plugin URI: https://wppopups.com
* Description: Beginner friendly WordPress popup builder plugin.
* Author: timersys
* Author URI: https://wppopups.com
* Version: 1.0.0
*/
add_filter( 'wppopups/newsletter/subscribe_data', function($data) {
$data['list_AAA'] = 1;
$data['list_BBB'] = 1;
return $data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment