wp comment recount <id>

Recalculates the comment_count value for one or more posts

Arguments

NameDescription
idIDs for one or more posts to update