Concurrent login for some users
-
How do I implement the function in your FAQ section for allowing concurrent logins for some users?
function pcl_bypass_admins( $user_id ) { $user = get_user_by( 'id', absint( $user_id ) ); if ( ! empty( $user->roles[0] ) && 'administrator' === $user->roles[0] ) { return false; } return true; } add_filter( 'pcl_prevent_concurrent_logins', 'pcl_bypass_admins' );
I’m not a coder. Where specifically do I add the user id that i want to allow concurrent logins?
https://www.ads-software.com/plugins/prevent-concurrent-logins/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Concurrent login for some users’ is closed to new replies.