wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_update_comment_count › WordPress Action Hooks

Since2.3.0
Deprecatedn/a
do_action( 'wp_update_comment_count', $post_id, $new, $old )
Parameters: (3)
  • (int) $post_id Post ID.
    Required: Yes
  • (int) $new The new comment count.
    Required: Yes
  • (int) $old The old comment count.
    Required: Yes
Defined at:
Codex:

Fires immediately after a post's comment count is updated in the database.





Source

do_action( 'wp_update_comment_count', $post_id, $new, $old );