You have to check wp_remote_get return
-
I have had some issue with it…
$response = wp_remote_get("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secret."&response=".$recaptcha_response); if(is_wp_error($response)) { wp_die(__("<p><strong>ERROR</strong>: ".$response->get_error_messages()."</p>", "sgr")."</p>\n\n<p><a href=".wp_get_referer().">« ".__("Back", "sgr")."</a>"); return null; } $response = json_decode(wp_remote_retrieve_body($response), true); if (!empty($response["success"])) { return $input;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘You have to check wp_remote_get return’ is closed to new replies.