Does this page have the specified status number or template name?
See status flag constants at top of Page class. You may also use status names: hidden, locked, unpublished, system, systemID
Usage
$bool = $page->is($status);
Arguments
Name | Type(s) | Description |
---|---|---|
status | int, string, Selectors | Status number, status name, or Template name or selector string/object |
Return value
bool
API reference based on ProcessWire core version 3.0.236