Last active
November 9, 2021 08:17
-
-
Save wtmujeebu/0fbb601bbecdd72366d1a45da8d66091 to your computer and use it in GitHub Desktop.
Exclude additional data from product image URLs on export - product import export plugin for woocommerce by WebToffee
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 // Please do not copy this line | |
add_filter('hf_export_image_metadata_flag','__return_false'); | |
add_filter('wt_batch_product_export_row_data','wt_batch_product_export_row_data_img',10,2); | |
function wt_batch_product_export_row_data_img($row, $product){ | |
if(isset($row['images']) && !empty($row['images'])){ | |
$row['images'] = str_replace('|', ',', $row['images']); | |
} | |
return $row; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment