wp_get_comment_fields_max_lengths хук-фильтрWP 4.5.0

Filters the lengths for the comment form fields.

Использование

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.

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.