@file_get_contents and wp_remote_get
Check the docs. file_get_contents() and wp_remote_get() are not equivalent. file_get_contents() returns a string. wp_remote_get() returns either an array or a WP_Error object. You need to look at wp_remote_post() to see the format of that array: Array ( [headers] => Array ( [date] => Thu, 30 Sep 2010 15:16:36 GMT [server] => Apache [x-powered-by] => PHP/5.3.3 … Read more