You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to create post with a date, AKA scheduled post #494
wp.posts().create({title: 'Your Post Title',content: 'Your post content',date: newDate("2022-09-01")status: 'scheduled'}).then(function(response){// "response" will hold all properties of your newly-created post,// including the unique `id` the post was assigned on creationconsole.log(response.id);})
Activity
BasToTheMax commentedon Dec 21, 2021
I don't know, but you can always try :)
(I will test your code and see what happens)