Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Last active November 7, 2019 16:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/1131145859a3fab58f4d to your computer and use it in GitHub Desktop.
Save joshfeck/1131145859a3fab58f4d to your computer and use it in GitHub Desktop.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
//* Disable email match check for logged out users
add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', 'ee_wp_users_remove_email_user_match_check_logged_out' );
function ee_wp_users_remove_email_user_match_check_logged_out() {
if ( ! is_user_logged_in() ) {
return false;
} else {
return true;
}
}
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
//* Disable email match check for all users
add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment