Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created December 9, 2025 10:59
Show Gist options
  • Select an option

  • Save webtoffee-git/8af59461f2e6261160993285d6589c52 to your computer and use it in GitHub Desktop.

Select an option

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
<?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