HI,
the code works, but doesn’t give a true result.
This is the code:
$pf_addon = cuar_addon('private-files');
// Check the download count of the attachment file for this post
if($pf_addon->get_file_download_count($post_id) > 0) {
$out = 'Scaricato';
} else {
$out = 'Non Scaricato';
}
break;
}
return $out;
}
this is what you see in the dashboard
But in the logs it shows as downloaded
Can you help me figure out what’s missing?
Thanks friend