Change number of session allowed or user device
-
Hi
in the wp-bouncer.php
there is this function :
//how many logins are allowed
$num_allowed = apply_filters(‘wp_bouncer_number_simultaneous_logins’, 1);Can I change it to 3 ?
You mention also in previous question this hack bellow
what are the differences ?
should I let the filter bellow like this or can I change it ?
or need I to add this bellow ??it’s not clear at all
tanks
/*
Change the number of simultaneous logins allowed.Change the “2” below to the number required or use any logic you’d like to calculate.
Add this code to your active theme’s functions.php or a custom plugin.
*/
function my_wp_bouncer_number_simultaneous_logins($num) {
return 2;
}
add_action(‘wp_bouncer_number_simultaneous_logins’, ‘my_wp_bouncer_number_simultaneous_logins’);
- The topic ‘Change number of session allowed or user device’ is closed to new replies.