Function wp_rml_get_by_id
This functions checks if a specific folder exists by ID and is
a given allowed RML Folder Type. If the given folder is _wp_rml_root()
you will
get the first level folders.
Returns:
IFolder Null if not found
Located at folders.php
Located at folders.php
Parameters summary
integer |
$id |
Folder ID |
int[] |
$allowed = null |
Which folder types are allowed. If null all folder types are allowed. |
boolean |
$mustBeFolderObject = false |
Defines if the function may return the wp_rml_root_childs result |
boolean |
$nullForRoot = true |
If set to false and $id == -1 then the Root instance is returned |