Timeline for Transition from Draft to Scheduled Post with wp_update_post
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 29, 2015 at 22:08 | comment | added | Craig Pearson | That's an interesting one and something I've never come across, glad you found your answer! Maybe update your question for future searchers so that the gods of karma will favour you? | |
Jan 29, 2015 at 21:09 | comment | added | user1048676 |
I actually needed to add post_date_gmt and now it started working. See this answer: wordpress.stackexchange.com/questions/67451/…
|
|
Jan 29, 2015 at 20:21 | comment | added | user1048676 | The form is being submitted to the same page so I'm not tying into any hooks or actions, just calling the wp_update_post directly. | |
Jan 29, 2015 at 20:08 | comment | added | user1048676 | I'm submitting a form to it and then processing the form and trying to update the post. | |
Jan 29, 2015 at 19:43 | comment | added | Craig Pearson | How are you calling this whole function? Is it called on the save_post() action? | |
Jan 29, 2015 at 19:10 | comment | added | user1048676 | Thanks for the help. I totally forgot that I read that somewhere. For some reason, it's still doing the same thing and setting it as published instead of scheduled. | |
Jan 29, 2015 at 19:01 | history | answered | Craig Pearson | CC BY-SA 3.0 |