do_action( 'woocommerce_variation_before_set_stock', int $product )

Action to signal that the value of ‘stock_quantity’ for a variation is about to change.


Description Description


Parameters Parameters

$product

The variation whose stock is about to change.


Top ↑

Source Source

File: includes/data-stores/class-wc-product-data-store-cpt.php


Top ↑

Changelog Changelog

Changelog
Version Description
4.9 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.