Linux 软件免费装

Plugin Name

开发者 paulfp
更新时间 2016年4月14日 18:53
捐献地址: 去捐款
PHP版本: 3.0.1 及以上
WordPress版本: 4.5
版权: GPLv2 or later
版权网址: 版权信息

标签

api ip address phone number telephone international phone number telephone numbers telecoms telecoms cloud ipinfo ipinfoio international dialing prefix

下载

1.0.1 1.0.2 1.0.3 2.0.0 2.0.1 2.0.2

详情介绍:

The plugin will automatically display telephone numbers in the correct format for international users from any country in the world. It does this by looking up their IP address (using ipinfo.io) and determining the country, then passing this information along with the phone number to the Telecoms Cloud API which formats the number correctly and adds the appropriate International Direct Dialing Number (IDD). As of version 2.0.0, the plugin also caches each new request (eg. number X in country Y being dialled from location Z) in order to return results from the cache in the case of subsequent identical requests. This results in less unnecessary requests being made to the Telecoms Cloud API, saving costs and increasing speed. Example: You may have a London phone number - 02079460981 - which would be displayed like so for visitors from the following countries: Usage: wherever you want a telephone number to be formatted automatically within your website, use the shortcode like so: [intPnd servicenumber="02079460981" location="GB"] Note: you must pass the 2-digit country code in which the telephone number is located. For a list, see http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

安装:

This section describes how to install the plugin and get it working.
  1. Upload intl-phone-number.php to the /wp-content/plugins/ directory (or install via WordPress Plugins menu)
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Sign up for a free Telecoms Cloud API account at https://my.telecomscloud.com/sign-up.html?api and input your API credentials in the plugin's Settings page
  4. Ensure you have cURL installed for PHP, which is required for the plugin to work. The Settings page will tell you if you need to install this, and how to do it.
  5. Trigger the plugin to format numbers like this: [intPnd servicenumber="02079460981" location="GB"]

升级注意事项:

  • 2.0.0 is a required upgrade enabling OAuth 2.0 authentication to the Telecoms Cloud API. You must upgrade in order for the plugin to function.

更新日志:

2.0.2 2.0.1 2.0.0 1.0.3 1.0.2 1.0.1 1.0