WordPress.org

Plugin Directory

Allow Multiple Accounts

Allow multiple user accounts to be created, registered, and updated having the same email address.

Template Tags

The plugin provides three optional template tags for use in your theme templates.

Functions

  • <?php c2c_count_multiple_accounts( $email ); ?>

Returns a count of the number of users associated with the given email.

  • <?php c2c_get_users_by_email( $email ); ?>

Returns the users associated with the given email.

  • <?php c2c_has_multiple_accounts( $email ); ?>

Returns a boolean indicating if the given email is associated with more than one user account.

Arguments

  • $email (string) An email address.

Filters

The plugin exposes three filters for hooking. Typically, customizations utilizing these hooks would be put into your active theme's functions.php file, or used by another plugin.

c2c_count_multiple_accounts (filter)

The 'c2c_count_multiple_accounts' hook allows you to use an alternative approach to safely invoke c2c_count_multiple_accounts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site.

Arguments:

  • same as for c2c_count_multiple_accounts()

Example:

Instead of:

<?php echo c2c_count_multiple_accounts( $email ); ?>

Do:

<?php echo apply_filters( 'c2c_count_multiple_accounts', $email ); ?>

c2c_get_users_by_email (filter)

The 'c2c_get_users_by_email' hook allows you to use an alternative approach to safely invoke c2c_get_users_by_email() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site.

Arguments:

  • same as for c2c_get_users_by_email()

Example:

Instead of:

<?php echo c2c_get_users_by_email( $email ); ?>

Do:

<?php echo apply_filters( 'c2c_get_users_by_email', $email ); ?>

c2c_has_multiple_accounts (filter)

The 'c2c_has_multiple_accounts' hook allows you to use an alternative approach to safely invoke c2c_has_multiple_accounts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site.

Arguments:

  • same as for c2c_has_multiple_accounts()

Example:

Instead of:

<?php echo c2c_has_multiple_accounts( $email ); ?>

Do:

<?php echo apply_filters( 'c2c_has_multiple_accounts', $email ); ?>

Requires: 3.6 or higher
Compatible up to: 4.2.2
Last Updated: 2015-4-16
Active Installs: 5,000+

Ratings

4.9 out of 5 stars

Support

2 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0 100,4,4 100,1,1
0,4,0 100,1,1
0,3,0 100,1,1 67,3,2
33,3,1
0,1,0
0,3,0
0,1,0
0,1,0 100,1,1
50,2,1
33,3,1 100,1,1
50,4,2
0,3,0
0,1,0
100,3,3
100,1,1
50,2,1
100,1,1
100,1,1
100,1,1
0,1,0
100,1,1
0,1,0
0,1,0