Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » PeoplePods Objects » $POD->isAuthenticated()

$POD->isAuthenticated()

Returns true if $POD was instantiated with a valid user, or if a valid user was set using the $POD->changeActor() function. Otherwise, returns false.

Examples:

This function can be used to display customized content for logged in and logged out users.

if ($POD->isAuthenticated()) {
    echo "Edit Profile";
} else {
    echo "Log In or Join";
}
  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.667 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...