• I’m trying to use wp_remote_post to send post data (title, content, tags) to a 3rd party api. Basically, I am using WordPress to submit data to another platform and will be sharing information back and forth.

    Here is a brief overview:
    New Post > Click Publish > Title, Content, Tags get processed and sent to 3rd party API, response comes back – possibly in the “Post published. View post” notification saying it was successful or an error message.

    I think that I should be able to create a function that has the API url, get the post content I want and put it in an array and then send it with wp_remote_post, but I’m unsure how to get it working. I have set it up where I get a response, but it looks like everything is empty.

    I’ve tried searching but can’t get on track.

    I know there will be other steps necessary for when the post is updated or altered, but I’ll tackle that once this first step is taken.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using wp_remote_post to send post data to 3rd party API’ is closed to new replies.