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

Filters the comment moderation email subject.

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

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(строка)
Subject of the comment moderation email.
$comment_id(int)
Comment ID.

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

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

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

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

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

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