Change button text – Filter hook
-
Hi,
I’m trying to change button text in admin Edit Order page (screenshot):
from ‘PDF Invoice’ to ‘MY PDF Invoice’
from ‘PDF Packing Slip’ >>> ‘MY PDF Packing Slip’I found the filter hook ‘wpo_wcpdf_myaccount_button_text’ but I’m doing something wrong, can anyone help me?
Thanks.add_filter( 'wpo_wcpdf_myaccount_button_text', 'my_wpo_wcpdf_myaccount_button_text', 10, 2 ); function my_wpo_wcpdf_myaccount_button_text ( $button_text, $invoice ) { $button_text_new = 'MY PDF Invoice'; return $button_text_new; }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Change button text – Filter hook’ is closed to new replies.