Auto redirect after session expire, but only for one user


Does anyone have an insight as to how I could auto redirect only one user instead of for everyone when a session times out?

IE user – paul when his session times out, takes him to instead of the basic re-log in page? Everyone else would still use the default log out redirect.

I am using this in my functions now:


function auto_redirect_after_logout(){
  wp_safe_redirect( home_url() );
Theodore 1 month 0 Answers 9 views 0

Leave an answer