Traverses and return all the nested children post names of a root page.
Description
$children contains parent-children relations
See also
Parameters
$page_id
intrequired- Page ID.
$children
arrayrequired- Parent-children relations (passed by reference).
$result
string[]required- Array of page names keyed by ID (passed by reference).
Source
// Append to the `$to_look` stack to descend the tree.
$to_look[] = $child;
}
}
}
}
return $page_list;
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.