WC_Post_Data::get_variation_summaries_sync_threshold
Gets the threshold for synchronous regeneration of variation summaries.
Method of the class: WC_Post_Data{}
Hooks from the method
Returns
Int.
Usage
$result = WC_Post_Data::get_variation_summaries_sync_threshold();
Changelog
| Since 10.2.0 | Introduced. |
WC_Post_Data::get_variation_summaries_sync_threshold() WC Post Data::get variation summaries sync threshold code WC 10.5.0
public static function get_variation_summaries_sync_threshold() {
/**
* Filters the threshold for synchronous regeneration of variation attribute summaries.
* If the number of variations affected by an update is below this threshold, the summaries
* are regenerated synchronously. Otherwise, the regeneration is scheduled asynchronously.
*
* @since 10.2.0
* @param int $threshold The default threshold value (50).
* @return int The filtered threshold value.
*/
return absint( apply_filters( 'woocommerce_regenerate_variation_summaries_sync_threshold', 50 ) );
}