Change the date of a “publish immediately” draft
-
I’m working on a plugin that will change the dates of posts. My code works well for just about every post I’ve tested, but when I try to change the date of a draft that is marked as “Publish Immediately” in the UI nothing happens. I don’t get any errors, but when I try to get the new date on the post I just get the old one. I’m using wp_update_post.
Does anyone know if there is a special field I have to set in this case? Is there an example I could look at?
Thanks in advance for the help,
Zack
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change the date of a “publish immediately” draft’ is closed to new replies.