Recent

tptn_before_update_count filter

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 368

Parameters

TypeNameDescription
bool$flagFlag to confirm that counts should be updated in the database.
int$idPost ID.
int$blog_idBlog ID.
int$activate_counterActivate counter flag.
int$sourceTraffic source: 0 = web, 1 = feed.

Usage

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