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

Filters the comment notification email subject.

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

add_filter( 'comment_notification_subject', 'wp_kama_comment_notification_subject_filter', 10, 2 );

/**
 * Function for `comment_notification_subject` filter-hook.
 * 
 * @param string $subject    The comment notification email subject.
 * @param string $comment_id Comment ID as a numeric string.
 *
 * @return string
 */
function wp_kama_comment_notification_subject_filter( $subject, $comment_id ){

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

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

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

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

wp_notify_postauthor()
comment_notification_subject
wp-includes/pluggable.php 1843
$subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID );

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

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