pdf export fails, is_admin() true
-
Hi,
I’m using successfully this great plugin since time now.
I needed to use some hook in order to adjust prices and fees in my functions.php file. One of my hook checks if is_admin() is true in order to check if the dashboard is shown by a shop admin.
In the last version of woocommerce, maybe, or of this plugin, I got an TRUE on is_admin() for customer in the review-order page, and this fails my routine and the plugin itself.
Is this a known issue? is there any workaround to fix it? Why is_admin() returns TRUE during the pdf export even if it is a customer page?Thank you
eddyhttps://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
The topic ‘pdf export fails, is_admin() true’ is closed to new replies.