Clarification on auth_redirect()
Trying to secure some pages redirecting non-loegged-in users to the log-in page, i found auth_redirect() function here Docs says “Checks user is logged in, if not it redirects them to login page”. Now, if so, why do i need to prepend if(!is_user_logged_in()) to make the function work? It shouldn’t be needed, but if i omit … Read more