Forums
(@felipesudrj)
7 years ago
I win!
the soluction is:
function alt_update_categoria_custom($data){ $data->set_category_ids(array(29,97,98)); } add_action( ‘woocommerce_before_product_object_save’, ‘alt_update_categoria_custom’);
how is your opinion about this?
tks