woocommerce_product_importer_pre_expand_data

woocommerce_product_importer_pre_expand_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_importer_pre_expand_data') is found 1 times:

  • /includes/import/class-wc-product-csv-importer.php line 846
    	 *
    	 * @return array
    	 */
    	protected function expand_data( $data ) {
    		$data = apply_filters( 'woocommerce_product_importer_pre_expand_data', $data );
    
    		// Images field maps to image and gallery id fields.
    		if ( isset( $data['images'] ) ) {
    			$images               = $data['images'];
    			$data['raw_image_id'] = array_shift( $images );
    
    

See this hook used in plugins: