Last active
March 29, 2021 09:51
-
-
Save matheuswd/5e40f651f1658cc933d42a4fb5b9fbf5 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 | |
function required_givewp_mailchimp() { ?> | |
<script> | |
jQuery("input[name=give_mailchimp_signup]").prop("required", true); | |
</script> | |
<?php } | |
add_action( 'give_donation_form_after_submit', 'required_givewp_mailchimp' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment