Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ckaklamanos/11b020cd88a53f5a243af91bf36f8a36 to your computer and use it in GitHub Desktop.
Save ckaklamanos/11b020cd88a53f5a243af91bf36f8a36 to your computer and use it in GitHub Desktop.
Uncheck "Send the new user an email about their account." by default
add_action( 'user_new_form', 'fn_uncheck_notify_register_on_new_user_form' );
function fn_uncheck_notify_register_on_new_user_form() {
echo '<script>jQuery(document).ready(function($) {
$("#send_user_notification").removeAttr("checked");
} ); </script>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment