Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active December 20, 2015 00:39
Show Gist options
  • Save rickrduncan/6043375 to your computer and use it in GitHub Desktop.
Save rickrduncan/6043375 to your computer and use it in GitHub Desktop.
<?php
//-> Do NOT include the opening php tag
// Login Screen: Set 'remember me' to be checked
add_action( 'init', 'rvam_login_checked_remember_me' );
function rvam_login_checked_remember_me() {
add_filter( 'login_footer', 'rvam_rememberme_checked' );
}
function rvam_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