[ 'Content-Type' => 'application/json' ], ]; $response = wp_remote_get( $url, $args ); $body = wp_remote_retrieve_body( $response ); $info = json_decode( $body ); return $info; } }