Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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