Can’t make an external api call in php side of wordpress child theme
So I finally figured out my problems. One mistake I was making was not structuring $options properly. This is WRONG what i did: $options = array( ‘http’ => array( ‘header’ => “Authorization: Bearer $api_key\r\n”, ‘method’ => ‘GET’, ), ); I’m not supposed to use http. This is the CORRECT WAY to do it: $options = … Read more