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: - Introduced in WordPress: 6.7.0
- Deprecated in WordPress: —
Description
Checks whether comment data passes internal checks or has disallowed content.