Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created August 14, 2013 06:11
Show Gist options
  • Select an option

  • Save remcotolsma/6228437 to your computer and use it in GitHub Desktop.

Select an option

Save remcotolsma/6228437 to your computer and use it in GitHub Desktop.
Adjust WooCommerce gateway icon with the WooCommerce 'woocommerce_available_payment_gateways' filter.
<?php
function prefix_pronamic_ideal_gateway_icon( $gateways ) {
if ( isset( $gateways['pronamic_ideal'] ) ) {
$gateways['pronamic_ideal']->icon = get_stylesheet_directory_uri() . '/images/omnikassa.png';
}
return $gateways;
}
add_filter( 'woocommerce_available_payment_gateways', 'prefix_pronamic_ideal_gateway_icon' );
@omid020

omid020 commented Apr 4, 2020

Copy link
Copy Markdown

Thank you so much! Very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment