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