Function wp_attachment_order_update
Moves an attachment before another given attachment in the order table.
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 |