Courtesy of Andy we have some new comment creation functions.
- wp_insert_comment() – Add a new comment to the DB
- wp_update_comment() – Update an existing comment in the DB
- wp_filter_comment() – Filter comment data
- wp_allow_comment() – Perform various spam checks on a comment
This is in addition to the already existing wp_new_comment(). The extra functions allow importers to skip spam checks and comment notifications when importing comments. The new functions are already being put to use in the Blogger importer.