woocommerce_gateway_icon filter-hookWC 1.0

Usage

add_filter( 'woocommerce_gateway_icon', 'wp_kama_woocommerce_gateway_icon_filter', 10, 2 );

/**
 * Function for `woocommerce_gateway_icon` filter-hook.
 * 
 * @param  $icon 
 * @param  $id   
 *
 * @return 
 */
function wp_kama_woocommerce_gateway_icon_filter( $icon, $id ){

	// filter...
	return $icon;
}
$icon
-
$id
-

Where the hook is called

WC_Payment_Gateway::get_icon()
woocommerce_gateway_icon
WC_Gateway_Paypal::get_icon()
woocommerce_gateway_icon
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 330
return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 166
return apply_filters( 'woocommerce_gateway_icon', $icon_html, $this->id );

Where the hook is used in WooCommerce

Usage not found.