Change the duration of the authentication cookie expiration period
-
Hi there!
If I want to change (increase or decrease) the duration of the authentication cookie expiration period for users who have membership on my site via your “Paid Memberships Pro” plugin, can I use this standard WordPress hook/filter?
‘auth_cookie_expiration’
https://developer.www.ads-software.com/reference/hooks/auth_cookie_expiration/Will this work?
add_filter ( 'auth_cookie_expiration', 'wpdev_login_session' ); function wpdev_login_session( $expiration, $user_id, $remember ) { return MONTH_IN_SECONDS; }
Or do I need a different filter / function?
———-
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change the duration of the authentication cookie expiration period’ is closed to new replies.