woocommerce_paypal_icon filter-hookWC 10.6.0

Filters the PayPal icon image.

Usage

add_filter( 'woocommerce_paypal_icon', 'wp_kama_woocommerce_paypal_icon_filter' );

/**
 * Function for `woocommerce_paypal_icon` filter-hook.
 * 
 * @param string $icon The PayPal icon image.
 *
 * @return string
 */
function wp_kama_woocommerce_paypal_icon_filter( $icon ){

	// filter...
	return $icon;
}
$icon(string)
The PayPal icon image.

Changelog

Since 10.6.0 Introduced.

Where the hook is called

WC_Gateway_Paypal::get_paypal_icon_image()
woocommerce_paypal_icon
WC_Gateway_Paypal::get_icon_image()
woocommerce_paypal_icon
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 458
return apply_filters( 'woocommerce_paypal_icon', $icon );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 530
return apply_filters( 'woocommerce_paypal_icon', $icon );

Where the hook is used in WooCommerce

Usage not found.