You can not and probably should not.
The proper full name of that setting should have been “remember me on this browser (for 14 days)”. The point is that it is not even a user based settings and it can have different values on the same computer with different browser sessions.
In addition since it is fully user controlled you should not rely on it to have anything to do with what the user actually sent in the form at login time.
Of course if you have a use case in which the problems mentioned above do not apply, you can just set additional cookie that specifies that the user selected “remember me”
Related Posts:
- Should wordpress_logged_in cookie exist while logged out?
- How to transition cookies from .subdomain.domain.com to .domain.com with minimal impact on users?
- WordPress authentication cookie and ajax calls
- is_user_logged_in() returns different values on different pages
- Cookie is not set
- Logged In cookie gets saved but not Auth cookie
- PHP – setcookie(); not working
- Automatic WordPress Login of Logged In ClickFunnels User
- How to validate a user from ouside wordpress/php?
- How to share cookies and sessions between domain and subdomain?
- why does WordPress need two cookies for auth/login
- How does REST API cookie authentication work in WP 4.7?
- Why does it say: ‘Cookies are blocked or not supported’?
- Place a cookie when a specific page has been viewed?
- How to detect a user that is not logged in
- How to change cookie name
- WP_Http_Cookie destroys cookie value through urldecode()
- Worpdress PHPSESSID / EU law
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Get restrict content by submitting Gravity Forms
- Website Loads Twice Unnecessarily
- Do I use cookies?
- Authentication/API Questions
- ERROR: Cookies are blocked or not supported by your browser
- What is cookie “U” from domain “.adsymptotic.com” found on the WordPress page? [closed]
- Serving Cookies From A Different Domain or Sub-Domain
- How to fix samesite attribute in wordpress for chrome errors?
- Secure wordpress_logged_in cookie
- Can’t GET draft posts via REST API from headless frontend
- Configuring WordPress Auth Cookie Expiration
- How does the “authentication unique keys and salts” feature work?
- Deleting cookie to logout
- Set authentication cookies to be shorter but then extend with every page load
- Show greetings on first time visitors?
- Auth cookie value security risk?
- Cookie only detected when visitor is logged in
- can we share user login in 2 wordpress installs in 2 subdomains on one server? [duplicate]
- background/font size change and remember
- WordPress cookies
- Modifying request $_COOKIE
- How to save generated JWT token to cookies on login?
- SSO autologin WordPress + Ajax
- Block google maps from loading until user agrees to cookies with Elementor
- Enable WordPress to share cookies between domain.com and sub.domain.com
- Setting Cookies
- How I can share cookies from my dimain to subdomain?
- How to setup cookie free domain for wp-includes?
- Setting Cookies For Form Autofill
- What are your thoughts on overriding the PHP builtin setcookie() function to control whether or not WP creates cookies
- How to make use of Transient API as cookie
- Issues with set cookie
- Accept or deny cookies – how to?
- How to set a Cookie-Free Domain with WordPress?
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- Is it possible to use cookie-free domains in WordPress?
- Passing cookies when using wp_remote_get
- Setting cookies in WP REST API requests
- Store value in cookie
- Set Short Automatic Logout Time for One User
- How to change WordPress cookies to be session-only
- Can I “protect” a page with a form asking for an email address?
- wordpress can’t read a cookie?
- Do I need a Cookie consent on a basic WordPress site?
- Page specific cookie
- will creating a static folder in the root directory serve the purpose of loading the static content from cookieless domain?
- Set cookie with taxonomy name
- Where is function to prevents non logged users access wp-admin?
- Best method to show modal only once
- Cookie with referral URL [closed]
- How to keep a variable in COOKIE or GET query string?
- Cookie Details Requested
- Cookies in template
- Cookie error. No possibility to define my cookie
- Log in user using WordPress REST API
- Favicon not loading until cookies are accepted?
- How to verify which WordPress user requested the API in ASP .NET Core?
- can you help review CCCP (Conditional Cookie Content Post) and help to create a block?
- Setup cookie on Chrome even without HTTPS
- Change auth_cookie_expiration for specific roles and specific login times
- PHP cookie control does not work correctly
- How can I get an updated cookie in header.php?
- Setting a Custom Cookie in WordPress only for Logged In Customer/User (non-admin)
- Authentication between two different sites using the WordPress login cookie
- The same session information for peer users on two different WordPress servers
- Checking for cookies returns correct result only inside Elementor Editor
- How to save history in the client’s browser without login? [closed]
- Automatically Log Out UserX when visiting WooCommerceStore
- Extend Cookie with auth_cookie_expiration not working
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- http_referrer issue when detecting where site comes from and allow if from allowed host
- Looking to load a different template part on every load/refresh
- Capture and display users name
- Why isn’t my cookie setting in my function?
- WordPress wp-login.php cookie error (WordPress Version 4.2.9)
- set cookies or let system know a user has been on site
- Opening protected page with cookie?
- setcookie not working when defined with ‘/’ but working if not defined
- How to use Cookie or Session php for one page and just a password
- How to get the id dynamically to store cookies
- WordPress keep logged in after browser close