comment_form_fields хук-фильтрWP 4.4.0

Filters the comment form fields, including the textarea.

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

add_filter( 'comment_form_fields', 'wp_kama_comment_form_fields_filter' );

/**
 * Function for `comment_form_fields` filter-hook.
 * 
 * @param array $comment_fields The comment fields.
 *
 * @return array
 */
function wp_kama_comment_form_fields_filter( $comment_fields ){

	// filter...
	return $comment_fields;
}
$comment_fields(массив)
The comment fields.

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

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

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

comment_form()
comment_form_fields
wp-includes/comment-template.php 2758
$comment_fields = apply_filters( 'comment_form_fields', $comment_fields );

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

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