If you get a console error telling you that the ‘arrow-right.svg’ resource is being served over HTTP instead of HTTPS, you can add a function like this to your functions.php file:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Replace HTTP with HTTPS in arrow resource | |
function prefix_filter_cart_remove_linked_product( $arrow_right, $cart_item_key ) { | |
return str_replace( 'http://', 'https://', $arrow_right ); | |
} | |
add_filter( 'pewc_filter_cart_remove_linked_product', 'prefix_filter_cart_remove_linked_product', 10, 2 ); |