• Wordpress
  • Redirect non logged in user

    There are many plugins which can be used for redirection. We can use small code on our theme file rather using plugins. To redirect non logged in member to custom login page or to specific page or to normal login page, we can put the following code on our functions.php inside active theme: For is_user_logged_in, […]