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.9.8.1

apply_filters('woocommerce_product_importer_pre_expand_data') is found 1 times:

  • /includes/import/class-wc-product-csv-importer.php line 850
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    *
     * @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: