Created
August 6, 2020 17:11
-
-
Save matheuswd/fc466e133852914c06ad59fc82dbc5d2 to your computer and use it in GitHub Desktop.
Makes the amount field blank and focused
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 | |
function change_amount_focus() { ?> | |
<script> | |
jQuery("#give-amount").val("").focus(); | |
</script> | |
<?php } | |
add_action( 'give_payment_mode_top', 'change_amount_focus' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment