post_ID, temp_ID, and drafts
-
heya all.
i’m writing a plugin, and need to be able to add an attachment to a post, while in the ‘write post’ screen. for that, i need a valid post_ID. however, if the user tries to add an attachment before the first draft has been saved, all i have is a temp_ID.
how, precisely, can i kick off the mechanism to save a draft, and generate a post_ID? i assume this will be a javascript function?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘post_ID, temp_ID, and drafts’ is closed to new replies.