Since WordPress 2.8 a filter is provided to set the cookie expiration .
apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
More details here
Related Posts:
- Update widget form after drag-and-drop (WP save bug)
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Need help with friendly URL’s in WordPress
- switch theme on fly
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- How to add checkbox and radio button in Profile Page
- Can I disable the auto complete?
- Widgets not working in Customizr but working in Appearance
- I want to replace a word in my theme with another throughout wordpress
- Best way to pass arguments to another page in WordPress
- Can I create front-end editable user profile pages with WordPress? How do I do it?
- register_sidebar ‘after_widget’ on custom-built widgets not implementing, caused nested widgets
- wp_nav_menu google analytics event tracking
- How can I & how do I change text displayed in comment via child theme
- Hide Login information in Account settings in Buddy Boss
- Custom Login and Registration form in Ajax
- Rebuild vs Upgrade – need pointers, advice
- Changing editor-style.css style
- Edit admin post page
- Can I develop a WordPress site without a domain?
- Customize the WordPress Default Gallery Output
- Adding my own “add to cart button”
- Filter my home page posts by category or by tag
- How to get rid of from overbooking car rental website [closed]
- Programmatically (PHP) get the nr. of items in the primary navigation menu
- Function to remove archive sidebar for custom taxonomy?
- Google font doesn’t show in theme option
- Add a InfoBox in the media upload window
- Multi Site installation inside a sub domain inside a sub directory
- How to create left and right menu with logo center in a custom theme?
- How to get custom page template being edited in gutenberg editor
- How can I setup a wordpress site with multi country & multi lingual support
- Is there a way to use LaTeX formatting for WordPress?
- 1 WordPress installation with 2 pages: every page gets a separate domain
- I’d like to move the Widgets Panel to the bottom of the list in Customizer
- REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
- problem in uploading attachment to custom directory
- What is the best way to move a single site from one MS installation to another? [duplicate]
- Basic Authentication problem with custom API endpoints
- How to update theme from localhost to online site
- Don’t change Custom Post Type slug to unique value
- Is it necessary to use Timthumb in WordPress 2.9+?
- How to show wp.me shortlink underneath each post?
- Shop page custom buttons which is visible to only administrator
- Change admin avatar only (without Gravatar or plugin)?
- Insert menu with a custom walker into page / post body using shortcode?
- How do I change the element using a custom function?
- Is it necessary to prefix theme_mod, section id and panel id in the customizer?
- Query for specific custom field
- Woocommerce custom field calculation
- Can readers download zip files from WordPress sites?
- Create a custom admin panel
- Dynamic Control in customiser
- How to auto add nofollow to links in custom field?
- How to load a mycred hook from a plugin?
- toggle Multiple Loop with tittle
- Translate custom template with WPML
- What are some good resources for teaching end-users how to use WordPress?
- How To make Custom page of every Category
- How to setup a membership system in WordPress?
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Global theme customization multisite
- Product page not found if product data is set Appointment Service
- I want to embed mystream video in my wordpress site
- Current menu item highlights wrong
- Measure time in ONLY HOUR format
- How can error pages be customized
- Floating CTA Image Integration
- Should disabling a plugin that has been customized by a developer crash the site?
- Calling get_theme_mod() of an WP_Customize_Image_Control() returns an Array, how do I correctly return the image src for my custom theme?
- Replace Vimeo and Youtube in from scratch theme with from-the-group-up single post template?
- Multiple logo’s in wordpress menu
- If a theme will undergo major changes would it be better to clone the parent instead of writting a child theme?
- permalink of word press in htacess
- Show comments based on user role in front end
- Adding separate CSS files for separate pages with functions.php
- after checked the checkbox in backend, dont show social link on frontend
- Add commentmeta custom field to every published comment with SQL
- Show specific posts as static html/php
- Buddypress: New Tab and Page (Members Profile) [closed]
- How do I change text of a product template in a WooCommerce theme? [closed]
- WordPress post submit page
- Display Custom Posts
- Create Custom Admin Fields
- How to place the captcha just below the comments text area
- Multiple posts categorized by day?
- Customized Comment Form Issues
- Post thats in Two Categories, only want to display name for one
- customize page is blank after installing wordpress 4.7.2
- Different post into a single page
- WordPress Search on Multiple wp sites
- Refresh Customize Section (not preview)
- How to get value from wp_usermeta table in database?
- Is it possible to show related posts on WordPress attachment pages?
- How to add filters to my site?
- How to use same username account for multiple users?
- Post does not disappear
- wordpress categories narrow down results