Last active
October 4, 2017 19:31
-
-
Save danieliser/a8998a38d84299d4aeba to your computer and use it in GitHub Desktop.
ReOpen popup 123 when form is submitted. This is needed when the form doesn't support ajax submission. The $_POST key & value will vary based on your form and will need to be replaced.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'pum14_popup_reg_form_check', 1000 ); | |
function pum14_popup_reg_form_check() { | |
if ( isset( $_POST['form_id'] ) && $_POST['form_id'] == 'my_form' ) { | |
?> | |
<script type="text/javascript"> | |
PUM.open(123); | |
</script> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment