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

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

Filters the comment author's name cookie before it is set.

When this filter hook is evaluated in wp_filter_comment(), the comment author's name string is passed.

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

add_filter( 'pre_comment_author_name', 'filter_function_name_9884' );
function filter_function_name_9884( $author_cookie ){
	// filter...

	return $author_cookie;
}
$author_cookie(строка)
The comment author name cookie.

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

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

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

sanitize_comment_cookies()
pre_comment_author_name
wp_filter_comment()
pre_comment_author_name
wp-includes/comment.php 589
$comment_author                            = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );
wp-includes/comment.php 1958
$commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] );

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

wp-includes/default-filters.php 17
add_filter( $filter, 'sanitize_text_field' );
wp-includes/default-filters.php 18
add_filter( $filter, 'wp_filter_kses' );
wp-includes/default-filters.php 19
add_filter( $filter, '_wp_specialchars', 30 );