Attachment update action hook?
-
Great plugin! However, I’m having trouble figuring something out.
Is there a way to find out what the attachment category is of an attachment when it’s updated (possibly through an action hook)? I’d like to automatically move the attachment from the uploads folder to a custom folder when I assign an attachment category to it. Basically, I’m trying to store attachments into folders named after the attachment category, rather than by the date they were uploaded.
Incidentally, I can’t find where the associations of categories and tags with attachments are stored in the database. My first thought was the post meta table, but there’s nothing there (from this plugin).
Any ideas? Thanks!
- The topic ‘Attachment update action hook?’ is closed to new replies.