Created
April 23, 2017 23:41
-
-
Save waltermesser/decee0110f446597e86d94ab873d4178 to your computer and use it in GitHub Desktop.
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 | |
add_action( 'wp_footer', 'hoc_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"> | |
jQuery('#pum-123').animate({'scrollTop': 0}, 1000); | |
</script> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment