wp_check_comment_data_max_lengths
wp_check_comment_data_max_lengths ( $comment_data )
Parameters:- (array) comment_data Array of arguments for inserting a comment.
Returns:- (WP_Error|true) WP_Error when a comment field exceeds the limit, otherwise true.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Compares the lengths of comment data against the maximum character limits.