comment_form_submit_button
Filters the submit button for the comment form to display.
Использование
add_filter( 'comment_form_submit_button', 'wp_kama_comment_form_submit_button_filter', 10, 2 ); /** * Function for `comment_form_submit_button` filter-hook. * * @param string $submit_button HTML markup for the submit button. * @param array $args Arguments passed to comment_form(). * * @return string */ function wp_kama_comment_form_submit_button_filter( $submit_button, $args ){ // filter... return $submit_button; }
- $submit_button(строка)
- HTML markup for the submit button.
- $args(массив)
- Arguments passed to comment_form().
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
comment_form_submit_button
wp-includes/comment-template.php 2865
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );