Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dparker1005/3c383aff29fe98352ee6db563d0ff182 to your computer and use it in GitHub Desktop.
Save dparker1005/3c383aff29fe98352ee6db563d0ff182 to your computer and use it in GitHub Desktop.
Adds a hint under the "Username" field at checkout.
<?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