I am trying to get a function that gets some info right before save in the database when user publish or updates a product of woocommerce (in wordpress)
So far, Ive found this
add_action( 'save_post_product', 'method' );
But seems like it is triggered when users enters to create a new product, but I can save it and all without calling this function
Is there any function to do this or any way?
Thanks
Maybe this is your solution:
Because I think WooCommerce don`t have default hook for this action.