Recent

tptn_count_updated action

tptn_count_updated

Drain the funnel into the log and count tables, then empty the funnel.

All four operations (copy to log, aggregate to daily, aggregate to overall, delete from funnel) run inside one transaction. A failure rolls back cleanly and the next run retries the same rows with no double-counting risk.

Type: action
Since: 4.3.0
Source: includes/class-database.php line 920

Parameters

TypeNameDescription
int$batch_sizeMaximum funnel rows to process per run.

Usage

add_action( 'tptn_count_updated', function($batch_size) {
    // ...
} );