
Multi-Email Login is a WordPress plugin that enables users to associate multiple email addresses with a single account and authenticate using any of them. This solves a common problem where users have multiple email addresses (personal, work, legacy accounts) but want to maintain a single WordPress profile.
Why Use Multi-Email Login?
Features:
* Multiple email addresses per user (unlimited)
* Login with any associated email address
* Seamless WordPress authentication integration
* Unique email enforcement
* User-friendly interface
* No configuration needed
* No WordPress core modifications
* Developer-friendly API for finding users by any email address
Security:
* Email format validation
* Input sanitization
* AJAX nonce protection
* User capability checks
* Password verification
* Duplicate prevention
The plugin provides a simple API for developers to work with multiple email addresses:
Find a user by any email address (primary or secondary):
$user = melog_get_user_by( ’email’, ‘[email protected]’ );
This function works just like WordPress’s get_user_by() but automatically checks both primary and secondary email addresses.
Instead of:
$user = get_user_by( ’email’, ‘[email protected]’ );
Use:
$user = melog_get_user_by( ’email’, ‘[email protected]’ );
For other field types (login, ID, slug), it behaves identically to the standard WordPress function.