How to get the attachment file ID on save post hook?
-
Hi,
Postie is great, thank you very much for this ??
I’m making a plugin, it’s compatible with Postie, I research your APIs on developer page but not sure this is possible or no.
I want to get the attachment file ID (not image), example as zip, doc … etc, to save this ID into the normal Post meta field, Postie saves this file but I don’t know how to get the ID from my plugin.
I see you have
postie_post_after
action, this is great, but it only store the image URLs incustomImages
field.So my question is how can I get another file format IDs/URLs? are there any hooks can help?
I want to save all attached files in Post custom field.
Thank you so much.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How to get the attachment file ID on save post hook?’ is closed to new replies.