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

whats-my-ip

描述

This plugin adds an [whatsmyip] shortcode tag to WordPress. You can use it
to embed the current User’s IP address inline in a Post.

The shortcode takes 3 attributes, ip, country and coords. Each of
these can take boolean values like 1, yes, no, true. Truthy values
enable the display of the corresponding field.

For Eg:- To display ip and country details use,

    [whatsmyip ip='yes' country='yes']

The ip attributes defaults to true if absent. Rest of the attributes
are false by default.

A Widget is also provided for use inside sidebars. Use the checkboxes in
the Widget customization screen to change the displayed fields.

安装

  1. Upload the whatsmyip directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use [whatsmyip] shortcode in your posts or pages.
  4. Or the What’s my IP Widget.

常见问题

How is the IP Address Calculated?

The IP address and other GeoIP data is obtained from the JSON API
provided by Telize.

评价

2016 年 9 月 3 日
I've been using this plugin for a couple of years and I just realized it is no longer working. It shows no results no matter what attributes I try in the shortcode. I've tried it in PaleMoon, FireFox and Chrome.
2017 年 2 月 8 日
Installed plugin and killed my entire website - now I get this error instead of my website: Fatal error: Call to undefined method Composer\Autoload\ClassLoader::setPsr4() in /home1/maui/public_html/mywebsite.com/wp-content/plugins/whats-my-ip/vendor/composer/autoload_real.php on line 40 DO NOT USE!!!!!!!!!!!!!!
阅读所有3条评价

贡献者及开发者

“whats-my-ip” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“whats-my-ip”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.5.2

  • Upgrades to Arrow 1.8.0.

0.5.1

  • Smaller build, without development files.

0.5.0

  • Upgrades to Arrow 1.6.0.

0.4.0

  • Upgrades to Arrow 0.7.0

0.3.0

  • Upgrades to Arrow 0.5.1.

0.2.2

  • Fixes Typos.

0.2.1

  • Upgrades to arrow 0.4.1.

= 0.2.0

  • Switched to arrow 0.4.0.

0.1.8

  • Updates encase-php to 0.1.3

0.1.7

  • Fixed version sync issue.

0.1.6

  • Adds SVN branches to script.

0.1.5

  • Updates Composer
  • Publish Script for Git to SVN sync.

0.1.0

  • Initial Release