comment_moderation_subject
Filters the comment moderation email subject.
Usage
add_filter( 'comment_moderation_subject', 'wp_kama_comment_moderation_subject_filter', 10, 2 );
/**
* Function for `comment_moderation_subject` filter-hook.
*
* @param string $subject Subject of the comment moderation email.
* @param int $comment_id Comment ID.
*
* @return string
*/
function wp_kama_comment_moderation_subject_filter( $subject, $comment_id ){
// filter...
return $subject;
}
- $subject(string)
- Subject of the comment moderation email.
- $comment_id(int)
- Comment ID.
Changelog
| Since 1.5.2 | Introduced. |
Where the hook is called
comment_moderation_subject
wp-includes/pluggable.php 2170
$subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id );