Title: comment_moderation_subject
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘comment_moderation_subject’, string $subject, int $comment_id )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#wp--skip-link--target)

Filters the comment moderation email subject.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#parameters)󠁿

 `$subject`string

Subject of the comment moderation email.

`$comment_id`int

Comment ID.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#source)󠁿

    ```php
    $subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/pluggable.php#L2166)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/pluggable.php#L2166-L2166)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_notify_moderator()](https://developer.wordpress.org/reference/functions/wp_notify_moderator/)`wp-includes/pluggable.php` |

Notifies the moderator of the site about a new comment that is awaiting approval.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/comment_moderation_subject/?output_format=md#changelog)󠁿

| Version | Description | 
| [1.5.2](https://developer.wordpress.org/reference/since/1.5.2/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_moderation_subject%2F)
before being able to contribute a note or feedback.