Here is the hook and you need to add this in functions.php file:
function replacePPicon($iconUrl)
{
$theme_name = str_replace(" ", "-", strtolower(get_current_theme()));
$paypal_image = get_theme_root_uri() . '/' . $theme_name . '/img/paypal.png';
return $paypal_image; // change this to your IMAGE URL
}
add_filter('woocommerce_paypal_icon', 'replacePPicon');
function replacePPicon($iconUrl)
{
$theme_name = str_replace(" ", "-", strtolower(get_current_theme()));
$paypal_image = get_theme_root_uri() . '/' . $theme_name . '/img/paypal.png';
return $paypal_image; // change this to your IMAGE URL
}
add_filter('woocommerce_paypal_icon', 'replacePPicon');
No comments:
Post a Comment