$site->hasUnlistedChildren()
Checks if the page has any unlisted children
$site->hasUnlistedChildren(): bool
Return type
bool
This method modifies the existing $site
object it is applied to and returns it again.
Parent class
Examples
<?php if ($site->hasUnlistedChildren()): ?>
There are unlisted (published, but not listed) children in /content.
<?php endif ?>