Function ze\content::isPublished()

In PHP:
ze\content::isPublished(
$statusOrCID, $cType = false, $cVersion = false
)

Description

This function allows you to check whether a content item is published.

There are three different ways of calling this function:

By status text

If you already know the status of the content item you can pass that string into this function and it will return true or false.

By content item

You can pass in the cID and cType of a content item to check if that content item has a published version.

By content version

You can pass in the cID, cType and cVersion of a content item to check if that specific version of the content item is the published version.