Par défaut, WooCommerce affiche l’un des nombreux icônes PayPal standards. Cependant, il est très courant de vouloir remplacer cette image par une autre.
Pour modifier cet icône, entrez le code suivant dans le fichier functions.php de votre thème et modifiez l’URL dans les guillemets pour qu’il corresponde à l’image de votre choix:
<?php /* Change PayPal Icon */ function my_new_paypal_icon() { return '/wp-content/uploads/2017/04/paypal-icon.png'; } add_filter( 'woocommerce_paypal_icon', 'my_new_paypal_icon' );