Created
January 25, 2020 13:41
-
-
Save ckaklamanos/11b020cd88a53f5a243af91bf36f8a36 to your computer and use it in GitHub Desktop.
Uncheck "Send the new user an email about their account." by default
This file contains 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
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