Add auto logout period

function logged_in( $expirein ) {
   return 604800; // 1 week in seconds
}
add_filter( 'auth_cookie_expiration', 'logged_in' );

Leave a Reply