Recent

tptn_before_update_countfilter

tptn_before_update_count

Filter the flag to confirm that counts should be updated in the database.

Type: filter
Since: 4.0.0
Source: includes/class-tracker.php line 439

Parameters

Type Name Description
bool $flag Flag to confirm that counts should be updated in the database.
int $id Post ID.
int $blog_id Blog ID.
int $activate_counter Activate counter flag.
int $source Traffic source: 0 = web, 1 = feed.

Usage

add_filter( 'tptn_before_update_count', function($flag, $id, $blog_id, $activate_counter, $source) {
    // ...
    return $flag;
} );