Use the method that matches your login form. For a form generated by wp_login_form(), pass 'remember' => false. For WordPress’s standard wp-login.php screen, that helper argument does not control the page; enqueue narrowly targeted CSS with login_enqueue_scripts after checking the site’s actual markup.
First identify which login form you have
WordPress sites commonly use either a form your theme or plugin renders with wp_login_form(), or the core login screen at wp-login.php. They are different implementations, so a setting for one should not be assumed to affect the other.
| Form | Recommended method | What changes |
|---|---|---|
Generated with wp_login_form() |
Set remember to false |
The helper omits the checkbox markup |
Standard wp-login.php screen |
Enqueue site-specific CSS through login_enqueue_scripts |
Presentation only; the markup remains in the page |
| Plugin or custom login form | Use that form’s own template or setting | Depends on the plugin or custom implementation |
The official wp_login_form() reference documents the remember argument and its default value of true. The core login screen has separate hooks and markup; for example, the login_form_top reference notes that this helper hook is unavailable in wp-login.php.
Remove it from a form generated by wp_login_form()
Pass the argument when the form is rendered:
<?php
wp_login_form( array(
'remember' => false,
) );
?>
This is the direct approach: the helper does not render its “Remember Me” checkbox. Place the change wherever your theme, template, shortcode, or plugin calls wp_login_form().
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall#1 Best Overall
If you cannot find the call
- Search the active theme and relevant plugins for
wp_login_form(. - Check whether a page-builder widget or membership plugin supplies its own login template.
- If the form is not produced by this helper, do not expect the
rememberargument to work; locate that implementation’s setting or template instead.
The login_form_defaults filter applies to the helper’s defaults, not automatically to every login form or to the core wp-login.php screen.
Hide it on the standard wp-login.php screen
For the core screen, load a small stylesheet with login_enqueue_scripts, the documented hook for styles and scripts on login and registration screens.
Rank #2
<?php
function freedom251_login_styles() {
wp_enqueue_style(
'site-login',
get_stylesheet_directory_uri() . '/login.css',
array(),
'1.0'
);
}
add_action( 'login_enqueue_scripts', 'freedom251_login_styles' );
?>
In login.css, target the checkbox row only after inspecting the rendered page in your browser’s developer tools. For example, if your installation actually uses the core selector shown below, you could write:
#loginform p.forgetmenot {
display: none;
}
Do not treat that selector as universal. A theme, security plugin, membership plugin, or custom login screen can change the element, class, or form entirely. Inspect the live page, confirm that the rule hides only the Remember Me row, then test the login form at the site’s real URL. The login_enqueue_scripts documentation describes the appropriate enqueue point.
Hiding the checkbox is not the same as changing session policy
CSS changes what visitors see; it does not by itself establish a different authentication-cookie or session-duration policy. WordPress’s Logging In documentation discusses Remember Me in connection with login cookies and session duration, but a visual hide should not be described as changing those settings. If your requirement is shorter sessions, forced reauthentication, or another security policy, configure and verify that behavior separately on the installed WordPress version.
Quick Recap
Best Value
Rank #4
Test the result
- Open the exact login URL in a private browser window.
- Confirm that the checkbox is absent (helper form) or visually hidden (CSS form).
- Submit valid and invalid credentials to ensure the form still functions.
- Check the page at desktop and mobile widths and with browser extensions disabled.
- If the option still appears, inspect the page source and identify whether another form or stylesheet is supplying it.
Which method should you use?
- Choose
'remember' => falsewhen you control a form generated bywp_login_form(); it removes the generated checkbox markup. - Choose login-screen CSS when you need a visual change on the core
wp-login.phppage and have verified the selector on your site. - Use the plugin or theme’s own controls when the form is custom; neither of the approaches above is guaranteed to affect it.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

