Created
January 15, 2016 20:44
-
-
Save rickrduncan/cdc941f6aa439038ac77 to your computer and use it in GitHub Desktop.
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
<?php | |
//* Do NOT include the opening php tag | |
//* Login Screen: Set 'remember me' to be checked | |
add_action( 'init', 'b3m_login_checked_remember_me' ); | |
function b3m_login_checked_remember_me() { | |
add_filter( 'login_footer', 'b3m_rememberme_checked' ) | |
; | |
} | |
function b3m_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