Check "Remember Me" by Default
Pre-ticks the "Remember Me" box on the login form so users stay logged in longer without having to remember to tick it.
Opens WPIDE on
Code
add_action( 'login_footer', function () {
echo "<script>(function(){var box=document.getElementById('rememberme');if(box){box.checked=true;}})();</script>\n";
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.