• Our wordpress site uses the wp_insert_post() function to create automated posts from time to time. We also have a form, that uses this function to convert submitted formdata to a post. However, use of this function does not add the post to the sendqueue. It remains with zero entries to send at next execution time. Publishing new posts via e.g. Classic Editor works as expected.

    Is there anything to run or do after wp_insert_post() to add the new created post to the queue?

    Thank you for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author vandestouwe

    (@vandestouwe)

    After the post is created look at the post via the editor. It must also be in a state to tell STC it is newly created. My guess is that your inserted post is not setup according WP standards.

Viewing 1 replies (of 1 total)

The topic ‘wp_insert_post() does not inject the created post to send queue’ is closed to new replies.