Skip to content

Instantly share code, notes, and snippets.

@NiklasHogefjord
Created April 10, 2015 07:03
Show Gist options
  • Save NiklasHogefjord/2fe91f5fb70ee11c34e5 to your computer and use it in GitHub Desktop.
Save NiklasHogefjord/2fe91f5fb70ee11c34e5 to your computer and use it in GitHub Desktop.
WooCommerce, DIBS Payment Gateway - Filter the payment gateway icon used in checkout
/**
* WooCommerce - DIBS payment gateway
* Filter the payment gateway icon used in checkout
*
**/
// Credit card payment method
add_filter('wc_dibs_icon_html', 'my_wc_dibs_icon_html');
function my_wc_dibs_icon_html( ) {
return '<img src="http://url-to-your-image.png" alt="DIBS - Payments made easy" />';
}
// Invoice payment method
add_filter('wc_dibs_invoice_icon_html', 'my_wc_dibs_invoice_icon_html');
function my_wc_dibs_invoice_icon_html( ) {
return '<img src="http://url-to-your-image.png" alt="DIBS - Payments made easy" />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment