Archive | /wp-includes/comment.php RSS feed for this section

wp_delete_comment

Trashes or deletes a comment.The comment is moved to trash instead of permanently deleted unless trash is disabled, item is already in the trash, or $force_delete is true.

3587

Continue reading

wp_defer_comment_counting

Whether to defer comment counting.When setting $defer to true, all post comment counts will not be updated until $defer is set to false. When $defer is set to false, then all previously deferred updated post comment counts will then be automatically updated without having to call wp_update_comment_count() after.

3579

Continue reading

wp_count_comments

Retrieve total comments for blog or single post.The properties of the returned object contain the ‘moderated’, ‘approved’, and spam comments for either the entire blog or single post. Those properties contain the amount of comments that match the status. The ‘total_comments’ property contains the integer of total comments.

3499

Continue reading