• Resolved Anonymous User 16110023

    (@anonymized-16110023)


    What hook can I use when variable product stock change is made using this plugin?

    woocommerce_save_product_variation is only being triggered when I manually edit the product and save, without using this plugin.

    • This topic was modified 2 years, 5 months ago by Anonymous User 16110023.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    There isn’t a hook specifically for variable product stock changes, however you can monitor all changes that the Bulk Edit plugin processed by using the pwbe_after_save_products hook.

    This has one parameter called $fields which you can review to look for any change to specific fields such as stock.

    Plugin Author pimwick

    (@pimwick)

    I’m marking this thread as resolved but let us know if you have any further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stock change hook’ is closed to new replies.