How to rewrite this file_get_contents() snippet using wp_remote_get()
Question
I have this piece of code, which uses file_get_contents(), as far as I know this does not work with WP, can someone help me how to rewrite the following code using wp_remote_get()?
$bizt_a = json_decode(file_get_contents("https://karteritesed.hu/biztositok.json"));
$bizt_lista = "";
foreach($bizt_a as $bizt){
$bizt_lista .= "<option value=\"".$bizt."\">".$bizt."</option>";
}
0
7 months
2022-06-30T11:20:40-05:00
2022-06-30T11:20:40-05:00 0 Answers
0 views
0
Leave an answer