comment_notification_headers хук-фильтрWP 1.5.2

Filters the comment notification email headers.

Использование

add_filter( 'comment_notification_headers', 'wp_kama_comment_notification_headers_filter', 10, 2 );

/**
 * Function for `comment_notification_headers` filter-hook.
 * 
 * @param string $message_headers Headers for the comment notification email.
 * @param string $comment_id      Comment ID as a numeric string.
 *
 * @return string
 */
function wp_kama_comment_notification_headers_filter( $message_headers, $comment_id ){

	// filter...
	return $message_headers;
}
$message_headers(строка)
Headers for the comment notification email.
$comment_id(строка)
Comment ID as a numeric string.

Список изменений

С версии 1.5.2 Введена.

Где вызывается хук

wp_notify_postauthor()
comment_notification_headers
wp-includes/pluggable.php 1853
$message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID );

Где используется хук в WordPress

Использование не найдено.