Hello everyone. I’m developing a woocommerce e-com. My client wants a button for each product that opens a “report” page where they can see all the orders (with billing information, names and so on) so they can print it. A very trivial html table would suffice.
I managed to add the button using the `manage_product_posts_custom_column` filter, and I want it to redirect to a page like `example.com/report.php?product_id=20` . Also the page must be seen only by an administrator.
Is this even possible? I’m new to WordPress, and googling around just lead me to templates documentation and unrelated woocommerce issues.
[ad_2]