Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/c9035e977ca3aa1b052a to your computer and use it in GitHub Desktop.
Save strangerstudios/c9035e977ca3aa1b052a to your computer and use it in GitHub Desktop.
Tell WP Bouncer to allow 3 simultaneous logins before bouncing people.
function my_wp_bouncer_number_simultaneous_logins($num) {
return 3;
}
add_filter('wp_bouncer_number_simultaneous_logins', 'my_wp_bouncer_number_simultaneous_logins');
@laurenhagan0306
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment