Function __global->cns_force_update_member_post_count
Definitions
sources/cns_posts_action.php
- Force a members post count to be recalculated.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member |
| $member_post_count_dif | ?integer | No | No | Null | N/A | N/A | The amount to add to the post count (null: fully recalculate the post count) |
Preview
Code (PHP)
/**
* Force a members post count to be recalculated.
*
* @param MEMBER $member_id The member
* @param ?integer $member_post_count_dif The amount to add to the post count (null: fully recalculate the post count)
*/
function cns_force_update_member_post_count(int $member_id, ?int $member_post_count_dif = null)
* Force a members post count to be recalculated.
*
* @param MEMBER $member_id The member
* @param ?integer $member_post_count_dif The amount to add to the post count (null: fully recalculate the post count)
*/
function cns_force_update_member_post_count(int $member_id, ?int $member_post_count_dif = null)

