Function wp_attachment_order_update
Moves an attachment before another given attachment in the order table.
Returns:
boolean True or array with error strings
Located at attachment.php
Located at attachment.php
Parameters summary
integer |
$folderId |
The folder id where the attachment exists |
integer |
$attachmentId |
The attachment which should be moved |
integer |
$nextId |
The attachment next to the currentId, if it is false the currentId should be moved to the end of table. |
integer |
$lastIdInView = false |
If you have pagination, you can pass the last id from this view |