W3cubDocs

/WordPress

apply_filters( ‘comment_notification_text’, string $notify_message, string $comment_id )

Filters the comment notification email text.

Parameters

$notify_messagestring
The comment notification email text.
$comment_idstring
Comment ID as a numeric string.

Source

$notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID );

Changelog

Version Description
1.5.2 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_notification_text