Email stopped in this case
-
hello dear
as per your instruction I used this code to let the logged in user can add new users while he logged in
add_filter( 'um_registration_for_loggedin_users', '__return_true' );
and I used this code to avoid the auto sign out of the current user and the auto sign in of the new registered user
add_action("init","um_062921_prevent_user_login"); function um_062921_prevent_user_login(){ if( is_user_logged_in() ){ remove_action( 'um_registration_complete', 'um_check_user_status', 100, 2 ); remove_action( 'um_user_login', 'um_user_login', 10 ); } }
it works but the second code lead to stopping of the emails that should be sent after registration to the new user and to admin, it didn’t sent at all
so please advise how to avoid that
best regards
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Email stopped in this case’ is closed to new replies.