WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Allow Multiple Accounts

Version: 2.6.2 Allow multiple user accounts to be created from 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.1 or higher
Compatible up to: 3.3.2
Last Updated: 2011-7-14
Downloads: 17,211

Ratings

4 stars
4.4 out of 5 stars

Support

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