wp_update_comment_count

wp_update_comment_count

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('wp_update_comment_count') is found 1 times:

  • /wp-includes/comment.php line 2795
    	 * @param int $post_id Post ID.
    	 * @param int $new     The new comment count.
    	 * @param int $old     The old comment count.
    	 */
    	do_action( 'wp_update_comment_count', $post_id, $new, $old );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( "edit_post_{$post->post_type}", $post_id, $post );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( 'edit_post', $post_id, $post );
    

See this hook used in plugins: