Code a button on a woocommerce product page to download a CSV with product data – WordPress
I'm trying to code a function to put a button on a Woocommerce Single Product Page, that when clicked it downloads a CSV with all woocommmerce data on it. Currently, if I put the code in functions.php, the button clicks…