Sorry, but it didn’t work.
I need to capture the country of the person who downloads the e-book and then show in WP Admin so we can have these infos as a report.
I already have the script that captures the IP and returns the country. [done]
I purchased the Custom fields add-on to insert a hidden field in the e-book download form. [done]
I have a code that sets an input type hidden with any value. [done]
Now I need to set the value of the input hidden with the country that returns from my PHP function.
I don’t know how to insert this code in my theme so it affects the download form.
-
This reply was modified 4 years, 6 months ago by
Sergio Golze.