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.

Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

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.

The Code Recipe

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Making this a more robust “Student Accounts” Add On

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 reach out to us via the contact form with some other ideas and features that would be useful.