Hello,
I handled download action like this:
onclick=”location.href='<?php echo site_url(); ?>/download/download-2/?wpdmdl=<?php the_field(‘downloads’); ?>’;return false;”
There is also PHP script to check the number of downloads for user, and if it’s >3 then download buttons are hidden.
The problem is – if the page doesn’t get refreshed after download, then downloads number stays the same, and users have option to download unlimited number of times.
Any idea on how to setup page refresh after download is done?
Many tnx