woocommerce_paypal_icon
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
woocommerce_paypal_icon
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 );