$page->hasInvisibleChildren()
Checks if the page has any invisible children
-
return (integer)
Example
<?php
echo $page->hasInvisibleChildren(); //returns the number of invisible children in the folder
if($page->hasInvisibleChildren()) {
$invisibleChildren = $page->children()->invisible();
}
?>