Skip to content

Instantly share code, notes, and snippets.

@cristacheda
Created March 9, 2018 13:45
Show Gist options
  • Save cristacheda/32cc331f9c8aed826595c2f558f4e91c to your computer and use it in GitHub Desktop.
Save cristacheda/32cc331f9c8aed826595c2f558f4e91c to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('form').submit(function(){
for( key in inc_popups ) {
var item = inc_popups[key];
var data = item.extend.data;
// To close any open popup remove the condition...
if ( data.popup_id == 1729 ) { //use your own popup_id here
item.extend.close_popup();
}
}
});
});
</script>
https://premium.wpmudev.org/forums/topic/popup-will-not-closed-after-submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment