jeudi 17 mars 2016

How do I access the true response code when calling wp_remote_post?

I am using a Wordpress plugin that makes an API call to MailChimp using wp_remote_post. The return value includes a code of 500 while MailChimp's API log shows a 214, which is considered by MailChimp to be an "exception". However, in my case 214 is an acceptable result, so I would like to check for this code and treat it as success. I am not very familiar with PHP & Wordpress, so I'm a little confused. What am I missing?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire