comment_form_submit_button
Filters the submit button for the comment form to display.
Usage
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(string)
- HTML markup for the submit button.
- $args(array)
- Arguments passed to comment_form().
Changelog
| Since 4.2.0 | Introduced. |
Where the hook is called
comment_form_submit_button
wp-includes/comment-template.php 2869
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );