Title: IP Address Shortcode
Author: wcdev
Published: <strong>2022 年 2 月 1 日</strong>
Last modified: 2024 年 3 月 19 日

---

搜索插件

![](https://ps.w.org/ip-address-shortcode/assets/banner-772x250.png?rev=2670418)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/ip-address-shortcode_dedfdf.svg)

# IP Address Shortcode

 作者：[wcdev](https://profiles.wordpress.org/wcdev/)

[下载](https://downloads.wordpress.org/plugin/ip-address-shortcode.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/ip-address-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/ip-address-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ip-address-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ip-address-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/ip-address-shortcode/)

## 描述

Add the shortcode “[wc-ip]” anywhere you would like to show visitor’s IP address.
This shortcode will either show IPv4 or IPv6 depending on the connecting user.

## 安装

 1. Upload the plugin folder to your /wp-content/plugins/ folder.
 2. Go to the **Plugins** page and activate the plugin.

## 常见问题

### How do I use this plugin?

Add “[wc-ip]” shortcode where you want to show the IP address.

### Can it show both IPv4 and IPv6

No. It will show only one of those. If your website has IPv6 enabled (AAAA record),
and the connecting user has IPv6, it will show their IPv6 only.

### How to show only IPv4?

NOT RECOMMENDED – To do that, you will have to remove your AAAA records from DNS
and disable IPv6 from Cloudflare (or other CDN). However, this will make your website
unreachable for users who only have IPv6 and not IPv4.

### How to uninstall the plugin?

Simply deactivate and delete the plugin.

## 评价

此插件暂无评价。

## 贡献者及开发者

「IP Address Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ wcdev ](https://profiles.wordpress.org/wcdev/)

[帮助将「IP Address Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ip-address-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ip-address-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/ip-address-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ip-address-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ip-address-shortcode/)。

## 更新日志

#### 1.0

 * Plugin released.

## 额外信息

 *  版本 **1.3**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ip-address-shortcode/)
 * 标签
 * [ip address](https://cn.wordpress.org/plugins/tags/ip-address/)
 *  [高级视图](https://cn.wordpress.org/plugins/ip-address-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ip-address-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ip-address-shortcode/reviews/)

## 贡献者

 *   [ wcdev ](https://profiles.wordpress.org/wcdev/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ip-address-shortcode/)