Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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().

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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 remember argument 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.

<?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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

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.

Test the result

  1. Open the exact login URL in a private browser window.
  2. Confirm that the checkbox is absent (helper form) or visually hidden (CSS form).
  3. Submit valid and invalid credentials to ensure the form still functions.
  4. Check the page at desktop and mobile widths and with browser extensions disabled.
  5. 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' => false when you control a form generated by wp_login_form(); it removes the generated checkbox markup.
  • Choose login-screen CSS when you need a visual change on the core wp-login.php page 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.