comment_form_field_cookies
Filters a comment form field for display.
This is one of the variants of the dynamic hook comment_form_field_(name)
Usage
add_filter( 'comment_form_field_cookies', 'wp_kama_comment_form_field_cookies_filter' );
/**
* Function for `comment_form_field_cookies` filter-hook.
*
* @param string $field The HTML-formatted output of the comment form field.
*
* @return string
*/
function wp_kama_comment_form_field_cookies_filter( $field ){
// filter...
return $field;
}
- $field(string)
- The HTML-formatted output of the comment form field.
Changelog
| Since 3.0.0 | Introduced. |
Where the hook is called
comment_form_field_cookies
wp-includes/comment-template.php 2840
echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";