Created
December 9, 2025 10:59
-
-
Save webtoffee-git/8af59461f2e6261160993285d6589c52 to your computer and use it in GitHub Desktop.
Code snippet to your active theme's functions.php and check - By WebToffee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //do not copy this line of code | |
| add_filter('wf_pklist_alter_footer_data','wf_pklist_show_custom_footer_data', 10, 3); | |
| function wf_pklist_show_custom_footer_data($footer_data, $template_type, $order) { | |
| if( $template_type == 'invoice' ) { | |
| if('IN' == $order->get_billing_country()){ | |
| $footer_data = __('your custom footer data for India','wt-woocommerce-invoice-addon'); | |
| } | |
| } | |
| return $footer_data; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment