This is a nice little WordPress code snippet when you wish to restrict page view to authenticated users only. We can achieve this using WordPress is_user_logged_in() function. This function will return true if user is logged in, false otherwise. In WordPress individual pages can be set to use a specific custom page template which you [...]
{ 0 comments }
