I’m writing a module for remote login into another WP site via my plugin’s admin. This is the code I’m using on the sender side: <?php add_action('init', 'connect'); function...
I’m trying to post some data to an API and I keep getting null values in the fields. My PHP code: $url="https://apiconnector.com/v2/address-books/136517/contacts"; $username="apiuser"; $password = 'passwd'; $headers = array(...
I’m using wp_remote_post() on a project and it works great. But seems like the server on which I need to make the POST request is a Windows (ISS) server....
So I’ve spent most of my morning working on my website’s customized social share buttons. Reading out Twitter and Facebook shares were no problem, but Google Plus is a...
I am trying to create a basic plugin to send user details to a CRM when a user signs up on the WordPress website as a basic subscriber. I...
Working with the remote API requests with WordPress. I have used wp_remote_post() function to request the HTTP data but I am unable to update the headers Content-type I am...
What I need I’m working with a third-party API (for the intents of this question, it’s irrelevant which one) and need to send a POST request to an external...
I want to post to multiple rest API endpoints with wp_remote_post but don’t want to wait for the response back and keep continuing code execution. Some popular clients like...
I’m trying to setup a proper cURL call in WordPress so am using wp_remote_post(). However, I’m having trouble authenticating the user via wp_remote_post(). Any idea how to convert the...
I have a WordPress instance on my development box with the WP REST API plugin installed. I am attempting to create my own plugin to use wp_remote_get() to communicate...