Hook to schedule all created posts ?
-
Hello Dev Team,
Firstly, thank you very much for your plugin. It’s magnificent!
I need your help please. I want to import some posts, and I want to schedule them instead of importing them all at this same time.
For instance, if I have 100 posts in my xml file. I want the first post to be posted after X minutes from the datetime stored as an option ( using add_option(‘previous_post_datetime’, $previous_post_datetime) ).
This way, if X === 7, all next posts will be scheduled and then published subsequently after 7 minutes.Is there a hook that we can use for this purpose? A hook to edit new post before save, so that we can update post object information and store it as a scheduled post?
Thank you
- The topic ‘Hook to schedule all created posts ?’ is closed to new replies.