Question
I have a plugin which uses wp_remote_get() and it's not working on my nginx server so I decided to test this. I created a file called test.php and inserted: <?php $response = wp_remote_get( 'http://www.domain.com/mytest.php' ); print $response ['body']; ?> When I run this ...
0
, , 2 months 0 Answers 59 views

Question
My question/issue is that wp_remote_get() is pulling in the wrong page/data on one site, and I'm stumped. I have 3 WP sites. Site 1 has a page with content that is used across all three sites. The goal is to pull ...
0
, 8 months 0 Answers 36 views

Question
I am using wp_upload_bits() to copy an obtained remote image... $upload = wp_upload_bits($file, '', wp_remote_retrieve_body( $get )); Image source example: https://logo.clearbit.com/starcomww.com The following code seems to obtain the image well enough: $get = wp_remote_get( $image_url ); $type = wp_remote_retrieve_header( $get, 'content-type' ); $file (name of ...
0
, , , 1 year 0 Answers 176 views