Created
May 8, 2020 18:01
-
-
Save dparker1005/3c383aff29fe98352ee6db563d0ff182 to your computer and use it in GitHub Desktop.
Adds a hint under the "Username" field at checkout.
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 | |
// Copy from below here... | |
/* | |
* Adds a hint under the "Username" field at checkout. | |
*/ | |
function my_pmpro_checkout_add_username_hint() { | |
?> | |
<script> | |
jQuery("#username").parent().append("<p><small class='lite'>Usernames cannot be changed after your account is created.</small></p>"); | |
</script> | |
<?php | |
} | |
add_action( 'pmpro_checkout_after_username', 'my_pmpro_checkout_add_username_hint' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment