comment_form_submit_field хук-фильтр . WP 4.2.0
Filters the submit field for the comment form to display.
The submit field includes the submit button, hidden fields for the comment form, and any wrapper markup.
Использование
add_filter( 'comment_form_submit_field', 'filter_function_name_685', 10, 2 ); function filter_function_name_685( $submit_field, $args ){ // filter... return $submit_field; }
- $submit_field(строка)
- HTML markup for the submit field.
- $args(массив)
- Arguments passed to comment_form().
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
comment_form_submit_field
wp-includes/comment-template.php 2698
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );