wppaste
WordPress

apply_filters( 'comment_notification_text', string $notify_message, string $comment_id )

Since
1.5.2
Filters the comment notification email text.

Compatibility

WordPress
since 1.5.2
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

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

Where this hook fires · 1

  • wp-includes/pluggable.php:1972wp_notify_postauthor()

Source code

			 *			 * @since 1.5.2			 *			 * @param string $notify_message The comment notification email text.			 * @param string $comment_id     Comment ID as a numeric string.			 */			$notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID ); 			/**			 * Filters the comment notification email subject.			 *			 * @since 1.5.2			 *

Changelog

Introduced in 1.5.2. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.