Hi marcorroma,
in your functions.php (in your theme) you can add sth like this:
add_filter( 'tlwp_expiry_options', 'my_tlwp_expiry_option', 10, 1);
function my_tlwp_expiry_option( $options ) {
$options['15_minutes_after_access'] = array(
'label' => __('15 Minutes after Access', 'text-domain'),
'group' => 'after_access',
'group_name' => __( 'After Access', 'temporary-login-without-password' ),
'expiry_label' => __( '15 Minutes after access', 'text-domain' ),
'timestamp' => MINUTE_IN_SECONDS * 15 ,
'order' => 1 // dropdown options will be sort with this number
);
}
Just be aware, that the time the user is in the system is only checked, when there is a change of the page/post the user is on.
If the user is on one page, just reading it or watching a video on that page, they can do that for hours, because the page does not check the permission for the user “automatically”.
Good luck!
-
This reply was modified 4 years, 4 months ago by emanaku.