I learned this lesson the hard way when I was managing a WordPress site for a coworking space. Members would use the shared computers to log into the site, and many would check that “Remember Me” box without thinking twice.
The problem hit me when someone reported they could access another member’s account just by opening the browser. That little checkbox had kept users logged in for weeks, creating a serious security gap on shared devices.
The “Remember Me” checkbox on your WordPress login page keeps users logged in for 14 days. While this sounds convenient, it can be a security risk for websites accessed from public computers, libraries, or shared workspaces.
In this tutorial, I’ll show you how to disable the “Remember Me” checkbox on a WordPress login page using WPCode.
Why Disable “Remember Me” Option from WordPress Login?
The “Remember Me” checkbox is an option you’ll see on the default WordPress login page. When someone checks that box, WordPress stores a cookie on their browser that keeps them logged in for two weeks.
However, this small checkbox might seem harmless, but I’ve seen it cause real problems for website owners who need tighter security control.

If they forget to log out on a shared computer, the next person who opens that browser gets direct access to your WordPress dashboard.
I’ve worked with several businesses in the past where this became a serious issue. For example, a healthcare practice using a WordPress website had a nurse check Remember Me on a shared office computer. The next staff member who used that computer could access the entire WordPress backend, including patient appointment data and private notes.
Educational institutions face the same risk. Let’s say a teacher logged into WordPress on a library computer to update course materials. Because they checked “Remember Me,” a student who used that computer next could access the WordPress admin area and see draft posts, private pages, and user information.
Even coworking spaces and small offices aren’t safe. I watched one company nearly lose important content when an employee’s “Remember Me” session let a visiting contractor access their WordPress site and accidentally delete published pages.
The security benefit of disabling this checkbox is simple. You prevent unauthorized users from stumbling into your WordPress dashboard just because someone before them forgot to log out.
That said, let’s look at a simple way of disabling the option on your WordPress login page.
Disable “Remember Me” Checkbox in WordPress
The best way to disable the remember me option in WordPress is by using WPCode. It is the best code snippet plugin for WordPress and makes it effortless to custom code to your site without touching your theme files.
WPCode offers a pre-built library of 140+ verified snippets. You can use it to add custom features and functionality to WordPress in just a few clicks. You don’t need to install multiple plugins or hire a developer to customize your website.
Amongst these code snippets is a snippet to disable the remember me checkbox on WordPress login. Besides that, you can manage all your snippets from one place. This keeps everything organized in one central location instead of scattered across different files.
For this tutorial, I am using the WPCode Lite version, which is available for free. There is also a WPCode Pro version that offers more advanced features like smart tags, page scripts, AI code generator, and more.
With that, let’s look at the steps you can follow to get started.
Step 1: Install and Activate WPCode
First, you will need to install WPCode on your WordPress site.
Simply log into your WordPress dashboard and go to Plugins » Add New. From here, search for ‘WPCode’ in the search bar and then click the Install now button.

After that, you’ll need to activate the plugin. If you need help, then please see this guide on how to install a WordPress plugin.
Step 2: Add Snippet to Hide Remember Me Option
Next, you will need to go to Code Snippets » Add Snippet page from the WordPress dashboard.
This will open the WPCode library, where you can use the search bar in the left panel to find the Hide “Remember Me” snippet. Simply hover over it and click the ‘Use snippet’ button.

On the next screen, you’ll see the code snippet already preloaded in the code editor.
Here, you can make changes to the code and view the code type.

From here, if you scroll down to the Insertion section, then you can see where the code will be inserted.
The best part about using WPCode is that it automatically configures the insertion method for your snippet. For example, this specific snippet will auto insert and run everywhere on your site.

Lastly, you can scroll to the top and click the toggle to make the code snippet Active.
Once that’s done, simply click the ‘Update’ button.

Step 3: Test If Remember Me Checkbox is Disabled
Now that the code snippet is active, the next thing to do is check if the ‘remember me’ checkbox is removed from the WordPress login page.
To do that, first you’ll need to log out of your WordPress dashboard.
After that, you should notice that the remember me checkbox is no longer available on the login screen.
Here’s how it would look like without the option:

Bonus: Replace WordPress Logo on Login Page
Did you know that you can personalize your WordPress site’s login page and replace the default logo?
Customizing the WordPress login page is a crucial step for establishing a strong brand identity.

By default, every WordPress site displays the WordPress logo above the login form. While this is acceptable for personal blogs, it can look unprofessional on client sites, membership portals, or eCommerce stores.
Replacing this default image with your own business logo creates a more attractive user experience and assures visitors that they are logging into the correct platform.
With WPCode, you can simply insert the ‘Replace WordPress Logo on Login Page’ snippet to replace the default logo with your own image. No need for an additional plugin or tweaking the theme files.
For more details, please see our guide on how to replace the WordPress login logo.
I hope this article helped you learn how to disable “Remember Me” checkbox from WordPress login. You may also want to see our guides on how to display last updated dates on your WordPress posts and how to add an event schema markup to WordPress.
If you need help, then feel free to leave a comment below. And don’t forget to follow us on X (formerly known as Twitter) and subscribe to our newsletter for all the latest updates.

