Created
August 10, 2015 14:07
-
-
Save strangerstudios/c9035e977ca3aa1b052a to your computer and use it in GitHub Desktop.
Tell WP Bouncer to allow 3 simultaneous logins before bouncing people.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_wp_bouncer_number_simultaneous_logins($num) { | |
return 3; | |
} | |
add_filter('wp_bouncer_number_simultaneous_logins', 'my_wp_bouncer_number_simultaneous_logins'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This recipe is included in the blog post on "Allow a Specific Number of Active Sessions with a Single User Account (Useful for Corporate, Education or Group-type Memberships)" at Paid Memberships Pro here: https://www.paidmembershipspro.com/allow-a-specific-number-of-active-sessions-with-a-single-user-account-useful-for-corporate-education-or-group-type-memberships/