get_comment_author_IP()
get_comment_author_IP( int|WP_Comment $comment_ID ) 检索当…
get_comment_author_IP( int|WP_Comment $comment_ID )
检索当前注释作者的IP地址。
Retrieve the IP address of the author of the current comment.
检索当前注释作者的IP地址。
Retrieve the IP address of the author of the current comment.
目录锚点:#参数#返回#源码
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $comment_ID | (int | WP_Comment) | 可选 | WP_Comment或要获取作者IP地址的注释的ID。默认当前注释。 |
返回(Return)
(string)注释作者的IP地址。
源码(Source)
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.4.0 | wp-includes/comment-template.php:267 | 2 | 3 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。



还没有任何评论,赶紧来占个楼吧!