'POST', 'body' => $params->toQueryString(), )); // Show WP error page if the request was not made successfully. if (is_wp_error($response)) { wp_die('ACF reCAPTCHA validation error:
' . $response->get_error_message()); } return wp_remote_retrieve_body($response); } }