wp_get_comment_fields_max_lengths filter-hookWP 4.5.0

Filters the lengths for the comment form fields.

Usage

add_filter( 'wp_get_comment_fields_max_lengths', 'wp_kama_get_comment_fields_max_lengths_filter' );

/**
 * Function for `wp_get_comment_fields_max_lengths` filter-hook.
 * 
 * @param int[] $lengths Array of maximum lengths keyed by field name.
 *
 * @return int[]
 */
function wp_kama_get_comment_fields_max_lengths_filter( $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_get_comment_fields_max_lengths
wp-includes/comment.php 1259
return apply_filters( 'wp_get_comment_fields_max_lengths', $lengths );

Where the hook is used in WordPress

Usage not found.