Woocommerce CSV importer
Note: If you are using FAT32 system then you might will face the same issue.
if(!function_exists('wce_gallery_update')){
function wce_gallery_update($post_id, $attach_ids){
is_array($attach_ids)?$attach_ids:array();
if(!empty($attach_ids)){
$meta_value = implode(',', $attach_ids);
update_post_meta($post_id, '_product_image_gallery', $meta_value);
}
}
}
Woocommerce CSV importer
Last updated: March 19, 2014