WC_Brands::recount_after_stock_change
Deprecated since 1.2.0. It is no longer supported and may be removed in future releases. Use wc_recount_after_stock_change() instead.
Recount the brands after the stock amount changes.
Method of the class: WC_Brands{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Brands = new WC_Brands(); $WC_Brands->recount_after_stock_change( $product_id );
- $product_id(int) (required)
- Product ID.
Changelog
| Deprecated since 11.2.0 | Use wc_recount_after_stock_change() instead. |
WC_Brands::recount_after_stock_change() WC Brands::recount after stock change code WC 11.3.0
public function recount_after_stock_change( $product_id ) {
wc_deprecated_function( __METHOD__, '11.2.0', 'wc_recount_after_stock_change()' );
wc_recount_after_stock_change( $product_id );
}