What you found is actually perfectly accurate. With WP’s commitment to backwards compatibility it’s not that common for thing to stop working.
This filter is used in wp_set_auth_cookie()
to calculate the duration. Resulting value is used in PHP’s setcookie()
.
There is no mention of specifics limits in documentation, so in practice the value is limited by integer range for Unix timestamp (practically at the moment — year 2038 give or take).
So you are pretty set on WP side, but I’d also look into how browsers handle it. I don’t think I heard about extra long expiration times used in practice outside of development. So it’s not well covered topic.
Related Posts:
- Passing Additional Parameters to add_filter Callable
- `authenticate` filter never gets called
- mu-plugins body_class filter not working
- Modify the third (context) parameter in a filter?
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- Not able to change wp_title using add_filter
- How to add headers to outgoing email?
- LESS CSS enqueue_style with add_filter to change rel attribute
- Remove Editor From Homepage
- Remove description from on Home
- What do add_filters() and apply_filter() do?
- Is it possible to remove the filter from 4.8 text widget?
- Display WooCommerce newest product reviews on top [closed]
- Overriding wp_get_archives() apply_filters()
- How to make post and comment count unclickable with dashboard_glance_items hook
- Call to undefined function error after adding add_filter to wp-config
- How to remove X-Frame-Options: SAMEORIGIN” from WordPress?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Add Dropdown menu using “add_filter => wp_nav_menu_items”
- Filtering ‘the_title’ with option to return subhead?
- How to add a custom filter in functions.php
- Setting title using wp_title filter
- 4.0 remove_filter for WordPress core function not working for me
- What functions are included in apply_filter(‘the_content’)
- Filtering admin entries for custom post type
- What hook/filter can I use to add/edit/show/hide the title under (on hover) links on the table view?
- option_active_plugins filter not working
- How do we check if the user is logging in or registering?
- Anonymous function is executed twice in wp_head while added from the_posts filter?
- add_filter return value
- Add a header before fields added with the attachment_fields_to_edit() filter
- Why my admin doesn’t work after adding rest_prepare_post filter?
- How to make a button?
- How do I filter title and alt attributes in the gallery shortcode?
- remove_action in plugin file
- How to apply filter at search of woocommerce products?
- Filter get_template_part() $args array
- Modify a Filters Second Parameter
- Filtering post-formats from the loop using new WP-Query();
- Insert term when page is published – avoid duplicates after edits
- Filter Media by Featured on Admin
- How to add a filter to get_the_author_meta?
- When does a function assigned to the content_filtered_edit_pre filter hook fire?
- page_attributes_dropdown_pages_args filter does not work
- What different ways can a plugin add a filter to a WordPress site?
- How to access plugin variables from theme templates without using globals?
- After logout browser’s back button into twenty sixteen theme profile
- Make an array filterable per hook
- How to pass variables to custom filter from multiple functions
- add img class to native wordpress galleries
- Get Posts updated or published within the last x hours
- WP filter to alter admin CSS styles?
- preview_post_link for Custom Post Types
- Filter an array with a callback – for single & multidimensional arrays
- Detect when gutenberg editor title is available in Dom after editor load
- Why this filter hook is not working when passing parameters?
- Are href attributes of a elements filtered on output to add the current path?
- Add a filter to an action [closed]
- Change the template when the user is not logged in using page_template filter (it does not work)
- Regarding post text filtering
- Add Filter not working with get_posts
- How to Prevent WordPress to encode html in post?
- Why template_include filter does not work with WPML plugin?
- Hide Posts In Back-end/Admin Based On User’s (Pseudo) Privileges Controlled by ACF
- Filter Pages by Custom Field (ACF) in admin area
- Filter posts by meta data using custom query
- Most performant/functional way to add actions/filters?
- Making an add_filter() call from within an add_filter() call
- Action hook to control access to certain parts of my site
- Finding actual functions added to hooks and filters
- Multiple issues with Ajax login function due to browsers and cookies
- How to apply filter on get_the_post_thumbnail()
- How can I tranlslate post date in italian?
- Use alternative front page if cookie is set
- Use WP cookie to authentificate user on an external app
- How do I check if I can use the allowed_block_types filter?
- Use a functions in functions.php to remove a string for template theme
- Setting the page title in a plugin, but not outside my plugin
- how to output HTML tags in post_content and not as plain text
- Security question – Display a General Custom Login Error Message
- Action for opening attachment or manipulating all attachment links
- Add filter conditionally to a page
- Cookie is not set
- Remove the post_content search from WHERE clause (and CONCAT sql function)
- How to apply a filter to everything?
- WP Job Manager – display search results from custom search form in taxonomy-job_listing_category page
- Conditionally (cpt) filter previous and next_post_link
- Post filter Month dropdown at front-end like wordpress backend
- changing size image within the content
- WP Dashboard -> Posts-> Filter by Category -> Form Method Change : Which Hook
- Remove action added from class
- How do I remove certain HTML elements with specific classes from the feed?
- Identify admin/logout and more filters
- Sanitizing a custom query’s clauses
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- confusion with add_filter
- How to create a list of terms who’s posts also have a predefined external term?
- Better way to change the default password reset url with the woocommerce one?
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Replacing text using add_filter