-
-
Save peterwilsoncc/db7b3d86650d1d8c60c8 to your computer and use it in GitHub Desktop.
Are you able to put this in your functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$response = wp_remote_get( 'http://www.google.com' ); | |
echo '<pre>'; | |
print_r ( $response['response'] ); | |
echo '</pre>'; | |
/* Expected result | |
Array | |
( | |
[code] => 200 | |
[message] => OK | |
) | |
*/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment