Skip to content

Instantly share code, notes, and snippets.

@NiklasHogefjord
Created July 14, 2014 12:07
Show Gist options
  • Save NiklasHogefjord/fd76f7e2d4f2e6a21e8f to your computer and use it in GitHub Desktop.
Save NiklasHogefjord/fd76f7e2d4f2e6a21e8f to your computer and use it in GitHub Desktop.
WooCommerce, DIBS Payment Gateway - Add the DIBS Transaction ID to order emails
/**
* Add the DIBS Transaction ID to order emails
**/
add_filter('woocommerce_email_order_meta_keys', 'dibs_woocommerce_email_order_meta_keys');
function dibs_woocommerce_email_order_meta_keys( $keys ) {
$keys['DIBS Transaction ID'] = 'dibs_transaction_no';
return $keys;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment