Check if user logged in


This simple tutorial will show you how to check if a user is logged in.

if( is_user_logged_in() ) {
    // The user is logged in. Do something here
} else{
    // This is a guest. Do something here

Welcome to Western Studios

We provide professional website and mobile softwares including Joomla, Wordpress and more.