woocommerce_product_import_image_separator

woocommerce_product_import_image_separator

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_product_import_image_separator') is found 1 times:

  • /includes/import/class-wc-product-csv-importer.php line 559
    			return array();
    		}
    
    		$images    = array();
    		$separator = apply_filters( 'woocommerce_product_import_image_separator', ',' );
    
    		foreach ( $this->explode_values( $value, $separator ) as $image ) {
    			if ( stristr( $image, '://' ) ) {
    				$images[] = esc_url_raw( $image );
    			} else {
    				$images[] = sanitize_file_name( $image );