Recent

tptn_count_updatedaction

tptn_count_updated

Fires after view counts change, so caches can be invalidated.

Bulk operations such as funnel aggregation and the daily rollup pass zeros, signalling that many posts changed rather than one specific post.

Type: action
Since: 4.2.0
Source: includes/class-database.php line 1153

Parameters

Type Name Description
int $post_id Post ID, or 0 after a bulk update.
int $blog_id Blog ID, or 0 after a bulk update.
bool $daily Whether the daily table was updated.

Usage

add_action( 'tptn_count_updated', function($post_id, $blog_id, $daily) {
    // ...
} );