Set status in a plugin I was wondering if it's possible to modify the status of an Entry within a plugin?

I've tried setting the status property but I get a readonly error.

$entry-&gt;status = $status
Not directly, but you can indirectly change it. An entry's status is defined by several attributes.

An entry is considered "live" if it is enabled (both on a per-locale and global basis), it has a post date in the past and an expiration date that doesn't exist or hasn't been met yet.

If the entry is enabled and the post date is greater than the current date, then the entry's status is "pending".

If it is enabled and the current date is past the expiration date, then it has a status of "expired".

If an entry is not enabled at all, it has a status of "disabled".