comment_moderation_headers filter-hookWP 2.8.0

Filters the comment moderation email headers.

Usage

add_filter( 'comment_moderation_headers', 'wp_kama_comment_moderation_headers_filter', 10, 2 );

/**
 * Function for `comment_moderation_headers` filter-hook.
 * 
 * @param string $message_headers Headers for the comment moderation email.
 * @param int    $comment_id      Comment ID.
 *
 * @return string
 */
function wp_kama_comment_moderation_headers_filter( $message_headers, $comment_id ){

	// filter...
	return $message_headers;
}
$message_headers(string)
Headers for the comment moderation email.
$comment_id(int)
Comment ID.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

wp_notify_moderator()
comment_moderation_headers
wp-includes/pluggable.php 2038
$message_headers = apply_filters( 'comment_moderation_headers', $message_headers, $comment_id );

Where the hook is used in WordPress

Usage not found.