Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Last active November 9, 2021 08:17
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 wtmujeebu/0fbb601bbecdd72366d1a45da8d66091 to your computer and use it in GitHub Desktop.
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
<?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