WC PDF Invoice – conditional title
-
Goodmorning, I’m searching a hook/action/filter to add
few conditional words in my Invoice file name formatIn WC > Orders > Actions Column, when i click the icon “Download PDF”
i want to add php condition: if order is completed add word word-A,
and if is not completed add word word-B, so the pdf filename will look like: word-A/B-invoice-number-invoice-date
I already find action( ‘woocommerce_pdf_invoice_settings_action’ ); in:
wp-content/plugins/woocommerce-pdf-invoice/classes/class-pdf-settings-class.phpBut how can i change title of file in my way, without editing core files?
- The topic ‘WC PDF Invoice – conditional title’ is closed to new replies.