wp_check_comment_data


wp_check_comment_data ( $comment_data )

Parameters:
  • (array) comment_data Array of arguments for inserting a comment.
Returns:
  • (int|string|WP_Error) The approval status on success (0|1|'spam'|'trash'), WP_Error otherwise.
Defined at:

Description

Checks whether comment data passes internal checks or has disallowed content.

Related Functions

wp_check_comment_flood, wp_check_comment_data_max_lengths, check_comment, wp_check_comment_disallowed_list, get_commentdata

Top Google Results

User discussions

wpseek mobile