WC_Post_Data::get_variation_summaries_sync_threshold
Gets the threshold for synchronous regeneration of variation summaries.
Метод класса: WC_Post_Data{}
Хуки из метода
Возвращает
int.
Использование
$result = WC_Post_Data::get_variation_summaries_sync_threshold();
Список изменений
| С версии 10.2.0 | Введена. |
Код WC_Post_Data::get_variation_summaries_sync_threshold() WC Post Data::get variation summaries sync threshold WC 11.2.2
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 ) );
}