Redirect non-logged in Visitors to Login Page for Private Post from 404 Page
On a WordPress website, if visitors try to access any private page or post, WordPress redirects the visitor to 404 page of the user is not logged in. it does not provide any message or redirect user or login page. To resolve this issue, I have authored this WordPress plugin to redirect users to login…