Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ethan978

    (@ethan978)

    From further analysis change the function for the categories is

    $callbacks['26'][1] = 'my_function';
    return $callbacks;

    26 is the index of the file csv with category.

    It fails probably because it can’t find my function in function.php. So how do you pass it the function so it fetches that?
    I have to make an add_action of my function, but which hook should I put?

    ethan978

    (@ethan978)

    Hello, @dustinparkerwebdev. I have a similar problem with the hook woocommerce_product_importer_formatting_callbacks. I need, when I import a csv, to implement a custom function to the field category_ids instead of the function “parse_categories_field”. So I think to change the callback function associate to this field. How to do this?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)