Skip to content

password_protected_auth_cookie_expiration

benhuson edited this page Sep 24, 2014 · 3 revisions

Set the duration under the login expires.

Example

// Expire after 2 hours
function my_password_protected_auth_cookie_expiration( $duration ) {
	return 7200 // Time in seconds
}
add_filter( 'password_protected_auth_cookie_expiration', 'my_password_protected_auth_cookie_expiration' );

Clone this wiki locally