Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created April 17, 2019 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/b64021f1c646ac7ede9dcf0145c952d7 to your computer and use it in GitHub Desktop.
Save plugin-republic/b64021f1c646ac7ede9dcf0145c952d7 to your computer and use it in GitHub Desktop.
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment