Intercept loading of a certain page
One way to approach this is to intercept the page load with the template_redirect action and test user status before rending the login page. Based on user status you could redirect to another page instead of loading the original page content. function wpse_is_user_good_enough() { if ( ! is_page( ‘your-login-page-slug-here’ ) ) { return; // Not … Read more