Created
May 21, 2015 04:02
-
-
Save BevanR/d6337c508a56b21e639a to your computer and use it in GitHub Desktop.
How to make the "Remember me" checkbox be checked by default in WordPress
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 | |
/** | |
* Makes the "Remember me" checkbox checked by default. | |
*/ | |
add_filter( 'login_form_defaults', function (array $args) { | |
$args['value_remember'] = true; | |
return $args; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment