Skip to content

Instantly share code, notes, and snippets.

@wpmu-authors
Created September 28, 2022 21:02
Show Gist options
  • Save wpmu-authors/437a5a40861ac501df19261479082326 to your computer and use it in GitHub Desktop.
Save wpmu-authors/437a5a40861ac501df19261479082326 to your computer and use it in GitHub Desktop.
function login_checked_remember_me() {
add_filter( 'login_footer', 'rememberme_checked' );
}
add_action( 'init', 'login_checked_remember_me' );
function rememberme_checked() {
echo "<script>document.getElementById('rememberme').checked = true;</script>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment