comment_form_field_(name) хук-фильтр . WP 3.0.0
Filters a comment form field for display.
The dynamic portion of the filter hook, $name, refers to the name of the comment form field. Such as 'author', 'email', or 'url'.
Использование
add_filter( 'comment_form_field_(name)', 'filter_function_name_68' ); function filter_function_name_68( $field ){ // filter... return $field; }
- $field(строка)
- The HTML-formatted output of the comment form field.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
comment_form_field_(name)
wp-includes/comment-template.php 2650
echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";