內容簡介
這個外掛為 WordPress 新增了一個 [whatsmyip] shortcode,可以將目前使用者的 IP 位址嵌入文章中。這個 shortcode 支援三個參數,分別為 ip、country 和 coords。每個參數都能使用布林值如 1、yes、no、true 等來控制要顯示的欄位。
例如:想要顯示 ip 和 country 資訊,可以使用以下 shortcode:
[whatsmyip ip='yes' country='yes']
其中,ip 參數預設為 true,其他則預設為 false。
此外,此外掛還提供一個小工具,可用於在側邊欄中顯示。在小工具自訂畫面中,可以使用核取方塊來變更要顯示哪些欄位。
外掛標籤
開發者團隊
原文外掛簡介
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.
