Function wp_rml_create
Creates a folder. At first it checks if a folder in parent already exists. Then it checks if the given type is allowed in the parent.
It is highly recommenend, to use wp_rml_structure_reset()
after you created your folders.
Returns:
int|string[] int (ID) when successfully array with error strings
Located at folders.php
Located at folders.php
Parameters summary
string |
$name |
String Name of the folder |
integer |
$parent |
int ID of the parent (_wp_rml_root() for root) |
integer |
$type |
integer 0|1|2 @see Folder.class.inc |
string[] |
$restrictions = array() |
Restrictions for this folder |
boolean |
$supress_validation = false |
Supress the permission validation |
boolean |
$return_existing_id = false |
If true and the folder already exists, then return the ID of the existing folder |