Filter: RML/ParentRoot

apply_filters( 'RML/ParentRoot', $folderId, $blogId ) → {int}

Get the root folder id which is showed in the folder tree.

// Get the root folder
$root = _wp_rml_root();
Parameters:
Name Type Default Description
$folderId int -1

1 is "Unorganized"

$blogId int

The current blog id

Returns:

The root folder id

Type
int