wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_update_comment_count › WordPress动作钩子

Since2.3.0
已弃用n/a
do_action( 'wp_update_comment_count', $post_id, $new, $old )
参数: (3)
  • (int) $post_id Post ID.
    Required: Yes
  • (int) $new The new comment count.
    Required: Yes
  • (int) $old The old comment count.
    Required: Yes
定义在:
文档:

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





源码

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