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