【ワードプレス】GETメソッドを使用してHTTPリクエストを行う関数です。
HTTPリクエストを行う関数
$response = wp_remote_get($url, $args);
オプション($args)のデフォルト値
$args = array(
'timeout' => 5,
'redirection' => 5,
'httpversion' => '1.0',
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url'),
'blocking' => true,
'headers' => array(),
'cookies' => array(),
'body' => null,
'compress' => false,
'decompress' => true,
'sslverify' => true,
'stream' => false,
'filename' => null
);
