Skip to content

password_protected_auth_cookie_expiration

Mike Paterson edited this page Jun 2, 2015 · 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' );