Merhabalar. WordPress sitemde file_get_contents ile bir URL'den veri çekiyorum.

Çektiğim API yakın zamanda yeni bir sisteme geçecek, yine benzer bir URL'den veri çekilecek ama bu sefer wp_remote_get ile çekmemiz gerekiyormuş sanırım. Çünkü yeni API URL'sinden veri çekerken file_get_contents kullandığımızda sayfalar yüklenmiyor.

İlgili taraf bana şu bilgiyi verdi:
Alıntı
try wp_remote_get https://codex.wordpress.org/Function.../wp_remote_get
and then get the body using wp_remote_retrieve_body https://codex.wordpress.org/Function..._retrieve_body
Kullandığım kod şöyle:
function dinamikFiyat($atts = null, $content = null){
    $content= file_get_contents("https://eu.api.battle.net/data/wow/token/?namespace=dynamic-eu&locale=en_GB&access_token=TOKEN");
    $decoded = json_decode($content);
    return '<div id="wowtoken_widget"><div class="price"><span>'.number_format($decoded->price / 10000).'</span></div><div style="text-align: center; background-color: rgba(0,0,0,.3); border-radius: 4px; box-shadow: 0 0 10px rgba(0,0,0,.63) inset; margin: 0 40px;"><span style="font-size: small; color: #ebdec2;">Son güncelleme: '.date('d.m.Y, H:i', ($decoded->last_updated_timestamp / 1000)).'</span></div></div>';
}
add_shortcode('fiyatcek', 'dinamikFiyat');
Bu kodun wp_remote_get'e dönüştürülmesi gerekiyor. Yapabilir misiniz, yapabilirseniz ne kadara yaparsınız?