comment_notification_text filter-hookWP 1.5.2

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

wp_notify_postauthor()
comment_notification_text
wp-includes/pluggable.php 1811
$notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID );

Where the hook is used in WordPress

Usage not found.