Created
March 26, 2018 20:00
-
-
Save mikeyarce/36b3152e58a8dc73a04b86e60dae9aa9 to your computer and use it in GitHub Desktop.
Remove relative URLs for WooCommerce product images
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 | |
/** | |
* Remove relative URLs for WooCommerce product images | |
*/ | |
add_filter( 'woocommerce_product_get_image', function( $url, $product, $size, $attr, $placeholder, $image ) { | |
return $image; | |
}, 10, 6 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment