comment_author_IP()
最后更新于:2021-11-25 20:52:14
comment_author_IP( int|GC_Comment$comment_ID)Displays the IP address of the author of the current comment.
参数
- $comment_ID
-
(int|GC_Comment) (Optional) GC_Comment or the ID of the comment for which to print the author’s IP address. Default current comment.
源文件
文件: gc-includes/comment-template.php
function comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore GeChiUI.NamingConventions.ValidFunctionName.FunctionNameInvalid
echo esc_html( get_comment_author_IP( $comment_ID ) );
}