Created
August 20, 2021 12:40
-
-
Save patrickposner/a0675041c05b2ff5cafafc176481cd58 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( 'passster_validation_success', function( $password ) { | |
?> | |
<script> | |
jQuery(document).ready(function( $ ) { | |
$('html, body').animate({ | |
scrollTop: $('#passster-scroll').offset().top | |
}, 'slow'); | |
}); | |
</script> | |
<?php | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment