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 1172

Changelog

Version Description
4.6.0 Added the $blog_ids parameter.
4.2.0 Introduced.

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.
int[] $blog_ids Sites affected by a bulk update, or empty when unknown.

Usage

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