Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » Content Object » $Content->changeStatus()

$Content->changeStatus()

$content->changeStatus('featured');

Change the editorial status of a document. This bypasses the normal isEditable() check. Calling this function also updates the flagDate field.

Valid status values are: new, approved, featured, hidden

You can then use the status field to load content of a given status: for example, loading only featured posts:

$featured_posts = $POD->getContents(array(
  'status'=>'featured',
  'type'=>'post'
));

This function is used primarily in the PeoplePods admin tool.

  • 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...