On my site I have a form that can be filled out by users. Once submitted, I am storing the form data in a third-party service using their RESTful API.
I’m trying to post with with the following code
I am developing a plugin that has a long-running function for setting up a load of posts of a custom post type. I want to run this function asynchronously. In order to do this, I have tried something like this: