Merge pull request #24120 from woocommerce/fix/24110
add filter for product import image separator
This commit is contained in:
commit
22726bd74d
|
@ -530,9 +530,10 @@ class WC_Product_CSV_Importer extends WC_Product_Importer {
|
|||
return array();
|
||||
}
|
||||
|
||||
$images = array();
|
||||
$images = array();
|
||||
$separator = apply_filters( 'woocommerce_product_import_image_separator', ',' );
|
||||
|
||||
foreach ( $this->explode_values( $value ) as $image ) {
|
||||
foreach ( $this->explode_values( $value, $separator ) as $image ) {
|
||||
if ( stristr( $image, '://' ) ) {
|
||||
$images[] = esc_url_raw( $image );
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue