WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

pre_comment_content хук-фильтр . WP 1.5.0

Filters the comment content before it is set.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

add_filter( 'pre_comment_content', 'filter_function_name_6577' );
function filter_function_name_6577( $comment_content ){
	// filter...

	return $comment_content;
}
$comment_content(строка)
The comment content.

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

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

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

wp_filter_comment()
pre_comment_content
wp-includes/comment.php 2104
$commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] );

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

wp-admin/includes/ajax-actions.php 1295
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-admin/includes/ajax-actions.php 1296
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/comment.php 3518
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 3519
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/default-filters.php 126
add_filter( $filter, 'convert_invalid_entities' );
wp-includes/default-filters.php 127
add_filter( $filter, 'balanceTags', 50 );
wp-includes/default-filters.php 280
add_filter( 'pre_comment_content', 'wp_rel_ugc', 15 );
wp-includes/kses.php 2093
add_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/kses.php 2095
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/kses.php 2121
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/kses.php 2122
remove_filter( 'pre_comment_content', 'wp_filter_kses' );