wp_get_comment_fields_max_lengths filter-hook . WP 4.5.0
Filters the lengths for the comment form fields.
Usage
add_filter( 'wp_get_comment_fields_max_lengths', 'filter_function_name_7774' ); function filter_function_name_7774( $lengths ){ // filter... return $lengths; }
- $lengths(int[])
- Array of maximum lengths keyed by field name.
Changelog
Since 4.5.0 | Introduced. |
Where the hook is called
wp_get_comment_fields_max_lengths
wp-includes/comment.php 1278
return apply_filters( 'wp_get_comment_fields_max_lengths', $lengths );