Last active
July 9, 2018 21:22
-
-
Save timersys/fd19386badd90121c5d2562a9a0de189 to your computer and use it in GitHub Desktop.
Open popup after WpForms submission - more on https://timersys.com/how-to-display-a-popup-after-user-submits-form/
This file contains hidden or 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 // don' add this tag | |
// Open popup after WpForms submission | |
add_action( 'wpforms_process_complete_534', 'spu_popup_trigger' ); | |
function spu_popup_trigger(){ | |
add_action('wp_footer','spu_open_popup',99); | |
} | |
function spu_open_popup(){ | |
echo '<script>setTimeout(function(){SPU.show(529)},1000);</script>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment