Hello @joecreative007,
I hope you’re doing well today!
There’s no such option to make different popups share the same email list in Hustle. We’ll have to check with the developers if there are any workarounds, and update you when we have their feedback.
Please note, that the next reply might take longer, since they are working on different complex tasks.
Best Regards,
Dmytro
Hello @joecreative007,
Could you please try adding the following PHP snippet as a must use plugin, by saving it as a PHP file in any text editor, for example “hustle-share-email-list.php“, and uploading it to /wp-content/mu-plugins/ directory on the site:
<?php
add_action( 'plugins_loaded', function() {
if ( ! defined( 'HUSTLE_MIN_PHP_VERSION' ) ) {
return; // Hustle is not installed/enabled.
}
if ( ! function_exists( 'wpmudev_hustle_custom_local_list' ) ) {
function wpmudev_hustle_custom_local_list() {
$source_popup = 3; // Replace this by the source Pop-up ID.
$target_popup = 2; // Replace this by the target Pop-up ID
if ( ! isset( $_POST['data']['module_id'] ) ) {
return;
}
$module_id = (int) $_POST['data']['module_id'];
if ( $source_popup === $module_id ) {
$_POST['data']['module_id'] = $target_popup;
}
}
add_action( 'wp_ajax_hustle_module_form_submit', 'wpmudev_hustle_custom_local_list', 9 );
add_action( 'wp_ajax_nopriv_hustle_module_form_submit', 'wpmudev_hustle_custom_local_list', 9 );
}
});
The $source_popup and $target_popup variables should be replaced by the source and target Pop-up IDs, respectively. You can get these values from the browser address bar when editing a popup:
https://prnt.sc/g7UiD1b1xTz1
Hope this helps. Let us know if you have any questions!
Best Regards,
Dmytro
Hello @joecreative007,
I hope the above snippet helped achieving the goal of combining the lists.
As we haven’t heard back from you for a while, I’m going to mark this thread as resolved. Please let us know if you need any further assistance.
Best Regards,
Dmytro