tptn_set_count
Set count for a post to a specific value.
Type: action
Since: 4.2.0
Source: includes/class-database.php line 146
Parameters
| Type | Name | Description |
|---|---|---|
int | $post_id | Post ID. |
int | $count | Count value to set. |
int | $blog_id | Blog ID (optional, defaults to current blog). |
bool | $daily | Whether to update daily count. |
Usage
add_action( 'tptn_set_count', function($post_id, $count, $blog_id, $daily) {
// ...
} );