``` if (is_user_logged_in()) { echo "亲爱的会员,您已经登陆!"; } else { echo "欢迎光临,请登陆查看!"; }; ```