action_scheduler_cleanup_batch_size хук-фильтрWC 1.0

Filter the batch size when cleaning the queue.

Использование

add_filter( 'action_scheduler_cleanup_batch_size', 'wp_kama_action_scheduler_cleanup_batch_size_filter' );

/**
 * Function for `action_scheduler_cleanup_batch_size` filter-hook.
 * 
 * @param int $batch_size The number of actions to clean in one batch.
 *
 * @return int
 */
function wp_kama_action_scheduler_cleanup_batch_size_filter( $batch_size ){

	// filter...
	return $batch_size;
}
$batch_size(int)
The number of actions to clean in one batch.

Где вызывается хук

ActionScheduler_QueueCleaner::get_batch_size()
action_scheduler_cleanup_batch_size
woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php 231
return absint( apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ) );

Где используется хук в WooCommerce

Использование не найдено.