wp_logout_url redirect not working

Use this logout link <li class=”signOut”><a href=”<?php echo wp_logout_url(); ?>” title=”Logout”>Logout</a></li> And add below code in your functions.php file to redirect the user to the page you want: add_action( ‘wp_logout’, ‘auto_redirect_user_after_logout’); function auto_redirect_user_after_logout(){ wp_redirect( ‘https://example.com/haendler-login/’ ); exit(); }