Linux 软件免费装

Forms: 3rdparty Phone Numbers

开发者 zaus
更新时间 2016年9月30日 01:19
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 4.5.3
版权: GPLv2 or later

标签

contact form API phone number parsing 3rdparty services international number

下载

0.3 0.4 0.4.2

详情介绍:

An add-on to 'Forms: 3rdparty Integration', it parses phone number fields from Contact Form submissions and exposes them to additional mapping. Uses the PHP Port of Google's libphonenumber, which may be included via Composer instead -- see GitHub version instead.

安装:

  1. Unzip/upload plugin folder to your plugins directory (/wp-content/plugins/)
  2. Make sure Forms 3rdparty Integration is installed and settings have been saved at least once.
  3. Activate this plugin
  4. Set the 'Phone number fields' option (fieldset may be collapsed by default) using URL-querystring format.
You can provide one or more phone numbers separated by & symbols. You may specify the input format (per country) with =country-code. You may specify both the input format and output format with =input-format,output-format. You may use another submission field to define the format by prefixing that field name with ##, e.g. field_name=##another_field Will parse and split up input phone number(s) and create additional 'submission' fields (which you can map against): field_name&field2=US,2&field3=2,3&field4=##field5

升级注意事项:

N/A.

常见问题:

It doesn't work right...

Drop an issue at https://github.com/zaus/f3i-phonenumber

Using field labels

Forms 3rdparty Integration makes some form plugin fields available by label as well as by id. There is a quirk in parsing url-querystrings whereby spaces in keys are turned into underscores. As of v0.4.2 this plugin will check if the key should have had spaces, so that 'your label=fieldvalue' will turn into:

  • your label-NationalNumber
  • your label-_etc_

Formats

From here, among other places

  • US = United States
  • CH = Switzerland
  • other iso country codes
  • 1 = (default) international format
  • 2 = national format
  • 3 = RFC3966 (url-format)

更新日志:

0.4.2 0.4 0.3 0.2 0.1