apply_filters( 'comment_moderation_subject', string $subject, int $comment_id )
- Since
- 1.5.2
Filters the comment moderation email subject.
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
$subjectstring- Subject of the comment moderation email.
$comment_idint- Comment ID.
Where this hook fires · 1
wp-includes/pluggable.php:2176wp_notify_moderator()
Source code
* * @since 1.5.2 * * @param string $subject Subject of the comment moderation email. * @param int $comment_id Comment ID. */ $subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id ); wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); if ( $switched_locale ) { restore_previous_locale(); }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 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.