comment_notification_headers
Filters the comment notification email headers.
Usage
add_filter( 'comment_notification_headers', 'wp_kama_comment_notification_headers_filter', 10, 2 ); /** * Function for `comment_notification_headers` filter-hook. * * @param string $message_headers Headers for the comment notification email. * @param string $comment_id Comment ID as a numeric string. * * @return string */ function wp_kama_comment_notification_headers_filter( $message_headers, $comment_id ){ // filter... return $message_headers; }
- $message_headers(string)
- Headers for the comment notification email.
- $comment_id(string)
- Comment ID as a numeric string.
Changelog
Since 1.5.2 | Introduced. |
Where the hook is called
comment_notification_headers
wp-includes/pluggable.php 1853
$message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID );