tptn_set_count
Fires after a post’s view count has been written to the database.
Type: action
Since: 4.2.0
Source: includes/class-database.php line 215
Parameters
| Type | Name | Description |
|---|---|---|
int |
$post_id |
Post ID. |
int |
$count |
The count that was stored. |
int |
$blog_id |
Blog ID. |
bool |
$daily |
Whether the daily table was updated. |
Usage
add_action( 'tptn_set_count', function($post_id, $count, $blog_id, $daily) {
// ...
} );