apply_filters( 'woocommerce_product_recount_terms', bool )
Filter to allow/prevent recounting of terms as it could be expensive.
Description Description
A likely scenario for this is when bulk importing products. We could then prevent it from recounting per product but instead recount it once when import is done. Of course this means the import logic has to support this.
Parameters Parameters
Source Source
File: includes/wc-term-functions.php
Changelog Changelog
Version | Description |
---|---|
5.2 | Introduced. |