wp_get_comment_fields_max_lengths WordPress Filter Hook

This hook allows you to modify the maximum length for each comment field. By default, the name field is limited to 30 characters, the email field is limited to 100 characters, and the URL field is limited to 200 characters.

apply_filters( 'wp_get_comment_fields_max_lengths', int[] $lengths ) #

Filters the lengths for the comment form fields.


Parameters

$lengths

(int[])Array of maximum lengths keyed by field name.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More