WPDev.one
Core Function
View Source on Trac ↗

wp_check_comment_data_max_lengths()

wp_check_comment_data_max_lengths( mixed $comment_data )

Compares the lengths of comment data against the maximum character limits.

Parameters 1 required

Name / Type Description
$comment_data
array

Array of arguments for inserting a comment.

Required

Return Value

((WP_Error)
(WP_Error | true) WP_Error when a comment field exceeds the limit, otherwise true.

Function Information

Since Version
4.7.0
Source File
wp-includes/comment.php
Advertisement