Returns the folder id of an given attachment or more than one attachment (array). If you pass an array
as attachment ids, then the default value does not work, only for single queries. When you pass a
shortcut attachment id, the folder id for the shortcut is returned.
Parameters
integer
$attachmentId
The attachment ID, if you pass an array you get an array of folder IDs
integer
$default
If no folder was found for this, this value is returned for the attachment
Link/Copy a set of attachments to a specific folder. When the folder
has already a given shortcut, the movement for the given attachment will be skipped.
If you want to receive the last created shortcut ID's you can use the
wp_rml_created_shortcuts_last_ids() function.
Synchronizes a result with the realmedialibrary_posts table so on this
base there can be made the folder content. It also creates shortcuts, if the
given $isShortcut parameter is true.
Do not use this directly, instead use the wp_rml_move function.
Parameters
integer
$postId
The post ID
integer
$fid
The folder ID
boolean
$isShortcut
true = Is shortcut in the given folder, false = Is no shortcut, mainly in this folder