How to access attachments in post pre-save?

Status
This content is read-only, or is not open for further replies.

comraider

Guest
offline
Hi,

I'm creating an add-on where I want to run some checks on pre-save when a new thread is being created. If those checks fail, I throw an error to prevent the save from occurring.

I need to access attachments that may have been added to the post. Since we're in pre-save, they haven't been associated with the post yet (and there's no post id), so I'm not sure how to go about this. I had a thought that I could use the attachment temp hash, but I don't know how to access that either.

Can...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom