Function wp_rml_create_shortcuts
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.
Returns:
boolean|string[] True or Array with errors
Located at attachment.php
Located at attachment.php
Parameters summary
integer |
$to |
Folder ID, if folder not exists then root will be |
int[] |
$ids |
Array of attachment ids |
boolean |
$supress_validation = false |
Supress the permission validation |