Posts Tagged: limit logins

If you offer bulk membership to corporate, education, or other group-type customers, this code recipe (which works in conjunction with the WP Bouncer plugin) will allow you to limit active sessions for a single user account.

How it Works

The code recipe filters wp_bouncer_number_simultaneous_logins to allow a defined number of active “sessions”. It requires the WP Bouncer plugin to be installed and activated.

This code recipe requires a PMPro Plus Account or higher.

Making this a more robust “Student Accounts” add on

We’re working on a more streamlined way to create student/group accounts. Our Sponsored Members add on currently allows a parent account to purchase seats for “X” child accounts, but each account has a unique log in. The parent account receives a code they can distribute to the team that allows them to create a membership account for the defined level.

A true “Student Accounts” add on would work in a similar nature, but would create the student account immediately at registration. The student account credentials could be distributed among a team, class, corporation, or other group. When a user is logged in via this group account, they would be restricted from updating the user profile (password, email address, display name, etc.) or membership account (change level, access billing information, or cancel membership).

Other ideas for this add on could include a way for the parent account to “update” the password, thereby blocking all current people with the log in information and allowing them to redistribute the login with new credentials.

If you could use a “Student Accounts” add on for your site, please post a comment below with some other ideas and features that would be useful.

60,000+ membership sites use Paid Memberships Pro to #GETPAID.

We’re 100% GPL

Our plugin's code is not obfuscated, runs on as many sites as you want and can be customized to fit your project's needs. We just ask that you follow the GPLv2 guidelines by applying the GPLv2 license to any altered or unaltered version of PMPro that you distribute. Thanks!