WordPress at a glance
filter is not described

pre_user_id filter-hook . WP 1.5.0

Filters the comment author's user ID before it is set.

The first time this filter is evaluated, 'user_ID' is checked (for back-compat), followed by the standard 'user_id' value.


add_filter( 'pre_user_id', 'filter_function_name_4749' );
function filter_function_name_4749( $user_ID ){
	// filter...

	return $user_ID;
The comment author's user ID.

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

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

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

wp-includes/comment.php 2074
$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );
wp-includes/comment.php 2077
$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] );

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

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