wp_handle_comment_submission


wp_handle_comment_submission ( $comment_data )

Parameters:
  • (array) $comment_data { Comment data.
Returns:
  • (WP_Comment|WP_Error) A WP_Comment object on success, a WP_Error object on failure.
Defined at:

Description

Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.

This function expects unslashed data, as opposed to functions such as wp_new_comment() which expect slashed data.

Related Functions

wp_get_comment_status, wp_set_comment_status, _wp_ajax_delete_comment_response, wp_update_comment_count, wp_destroy_current_session

Top Google Results

User discussions

wpseek mobile