Posted: April 16, 2019 at 11:21 pm
Hi there, We need to allow groups to register together and each registrant automatically needs to get a wp user account, but we can’t force a login for any existing users that are registered by their colleagues. -Hilary |
|
Hi, You can put both snippets of code into a site plugin to do both things you want to do there. |
|
Hi Josh, //* 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; } } |
|
Start by checking this isn’t a logic issue for what you are trying to do. In place of the above, use:
Does it work for you then? Note that just disables the check completely, so this is just to test the code is running. |
|
Hi Tony, |
|
Ok, so that means the code is running, but its not the logic you want. The code above tells EE not to match the emails if you are logged out:
If you want the check disabled when logged IN but enabled when logged OUT, remove the
|
|
This totally works. And it solves a HUGE problem for us. Phew, thanks so much, Tony! |
|
The support post ‘WP user multiple attendee & disable user traffic cop for logged in user’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.