Auto redirect after session expire, but only for one user

Question

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 XYZ.com/page 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:

add_action(‘wp_logout’,’auto_redirect_after_logout’);

function auto_redirect_after_logout(){
  wp_safe_redirect( home_url() );
  exit;
}
0
Theodore 2 years 2020-12-17T13:10:47-05:00 0 Answers 9 views 0

Leave an answer

Browse
Browse