Title: Local List Data
Last modified: January 21, 2024

---

# Local List Data

 *  Resolved [joecreative007](https://wordpress.org/support/users/joecreative007/)
 * (@joecreative007)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/local-list-data/)
 * Hi, is there a way to make two different use instances add to the same Local 
   List? For example, I have a global popup list (disabled on the embedded shortcode
   page,) and an embedded shortcode instance on a subscriber page. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/local-list-data/#post-17361095)
 * Hello [@joecreative007](https://wordpress.org/support/users/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
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/local-list-data/#post-17376168)
 * Hello [@joecreative007](https://wordpress.org/support/users/joecreative007/),
 * Could you please try adding the following PHP snippet as a [must use plugin](https://wordpress.org/support/article/must-use-plugins/),
   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](https://prnt.sc/g7UiD1b1xTz1)
 * Hope this helps. Let us know if you have any questions!
 * Best Regards,
    Dmytro
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/local-list-data/#post-17397663)
 * Hello [@joecreative007](https://wordpress.org/support/users/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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Local List Data’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/local-list-data/#post-17397663)
 * Status: resolved