Support » Plugin: FileBird - WordPress Media Library Folders & File Manager » Another getFolders-Question

  • Resolved Gerdski



    II am using getFolders to … yes … get the Folders 🙂

    When I use this:
    use FileBird\Classes\Tree;
    $folders = Tree::getFolders( null );
    I get the complete tree.

    How can I get only a part of the tree? Like, e.g. only Folder #7?
    Tree::getFolders(7) doesn’t work. Looking in includes/classes/Tree.php I can see why:

    $tree = self::getTree($folders_from_db, 0, $default_folders, $flat, $level, $show_level);

    The second parameter sets the parent for getTree(), but it always 0 here.
    Is there any way to change this?

    Thanks a lot!

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Another getFolders-Question’ is closed to new replies.