pre_comment_user_ip хук-фильтр . WP 1.5.0
Filters the comment author's IP address before it is set.
Использование
add_filter( 'pre_comment_user_ip', 'filter_function_name_8561' ); function filter_function_name_8561( $comment_author_ip ){ // filter... return $comment_author_ip; }
- $comment_author_ip(строка)
- The comment author's IP address.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
pre_comment_user_ip
wp-includes/comment.php 2107
$commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );