Hello,
I am not sure if I should file a documentation bug so I ask first.
Is the example given in $pages->filter($callback) still supposed to work in Kirby 2.3?
//fetch children in the current language only
$items = $page->children()->visible()->filter(function($child) {
return site()->language()->code() == $child->language()->code();
});
If not, it could probably be replaced with:
$items = $page->children()->visible()->filter(function($child) {
return $child->content(site()->language()->code)->exists();
});
Thanks