Redirect Users After Log Out On WordPress Website

In this video i show you how you can redirect users when they log out of your WordPress made website.. the code i use in the video is below

add_action(‘wp_logout’,’auto_redirect_after_logout’); function auto_redirect_after_logout(){ wp_redirect( home_url() ); exit(); }



As an Amazon Associate we earn from qualifying purchases through some links in our articles.

Leave a Comment

Scroll to Top