apply_filters( 'comment_moderation_text', string $notify_message, int $comment_id )
- Since
- 1.5.2
Filters the comment moderation 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- Text of the comment moderation email.
$comment_idint- Comment ID.
Where this hook fires · 1
wp-includes/pluggable.php:2042wp_notify_moderator()
Source code
* * @since 1.5.2 * * @param string $notify_message Text of the comment moderation email. * @param int $comment_id Comment ID. */ $notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id ); /** * Filters the comment moderation email subject. * * @since 1.5.2 *Changelog
Introduced in 1.5.2. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 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.