comment_moderation_subject filter-hookWP 1.5.2

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

wp_notify_moderator()
comment_moderation_subject
wp-includes/pluggable.php 2004
$subject = apply_filters( 'comment_moderation_subject', $subject, $comment_id );

Where the hook is used in WordPress

Usage not found.