Skip to content

Kirby 3.9.8

$page->hasUnlistedChildren()

Checks if the page has any unlisted children

$page->hasUnlistedChildren(): bool

Return type

bool

Parent class

Kirby\Cms\Page

Example

echo $page->hasUnlistedChildren(); //will echo 1 if true, nothing if false

if($page->hasUnlistedChildren()) {
  $unlistedChildren = $page->children()->unlisted();
}