Inserts a comment to the database.The available comment data key names are ‘comment_author_IP’, ‘comment_date’, ‘comment_date_gmt’, ‘comment_parent’, ‘comment_approved’, and ‘user_id’.
3789
Continue readingInserts a comment to the database.The available comment data key names are ‘comment_author_IP’, ‘comment_date’, ‘comment_date_gmt’, ‘comment_parent’, ‘comment_approved’, and ‘user_id’.
3789
Continue readingGet current commenter’s name, email, and URL.Expects cookies content to already be sanitized. User of this function might wish to recheck the returned array for validity.
3699
Continue readingFilters and sanitizes comment data.Sets the comment data ‘filtered’ field to true when finished. This can be checked as to whether the comment should be filtered and to keep from filtering the same comment more than once.
3653
Continue reading
wp_new_comment
Adds a new comment to the database.Filters new comment to ensure that the fields are sanitized and valid before inserting comment into database. Calls ‘comment_post’ action with comment ID and whether comment is approved by WordPress. Also has ‘preprocess_comment’ filter for processing the comment data before the function handles it.
3941
Continue reading →