$page→isPublished()
Is this page published? (i.e. does not have 'unpublished' status)
This method will also return false if the page does not yet have an id.
Available since version 3.0.260.
Usage
$bool = $page->isPublished();Return value
bool
API reference based on ProcessWire core version 3.0.259