comment_moderation_text filter-hookWP 1.5.2

Filters the comment moderation email text.

Usage

add_filter( 'comment_moderation_text', 'wp_kama_comment_moderation_text_filter', 10, 2 );

/**
 * Function for `comment_moderation_text` filter-hook.
 * 
 * @param string $notify_message Text of the comment moderation email.
 * @param int    $comment_id     Comment ID.
 *
 * @return string
 */
function wp_kama_comment_moderation_text_filter( $notify_message, $comment_id ){

	// filter...
	return $notify_message;
}
$notify_message(string)
Text 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_text
wp-includes/pluggable.php 2018
$notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id );

Where the hook is used in WordPress

Usage not found.