Last active
April 8, 2021 15:40
-
-
Save matheuswd/19e96de934e922f1732c20b545d79955 to your computer and use it in GitHub Desktop.
This code forces an account creation for GiveWP when account creation is enabled
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 | |
function my_checked_create_account() { ?> | |
<script> | |
jQuery("input[name=give_create_account]").prop("checked", true); | |
</script> | |
<?php } | |
add_action( 'give_donation_form_after_submit', 'my_checked_create_account' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment