| 开发者 | zaus |
|---|---|
| 更新时间 | 2016年9月30日 01:19 |
| 捐献地址: | 去捐款 |
| PHP版本: | 3.0 及以上 |
| WordPress版本: | 4.5.3 |
| 版权: | GPLv2 or later |
/wp-content/plugins/)& 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):
FIELDNAME-CountryCode = country codeFIELDNAME-NationalNumber = regional number (without country code)FIELDNAME-AreaCode = regional codeFIELDNAME-Subscriber = local number (without area code)FIELDNAME-Extension = telephone extension, if presentFIELDNAME-NumberOfLeadingZeros = how many zeros it would start with if it had themFIELDNAME-Out = reformated phone number
Example: to convert input phone-number "9195551234" in various fields:field_name from assumed format into standard international +1 919-555-1234field2 assuming US country code into standard regional (919) 555-1234field3 from international format (requires country code +X) into url style tel:+1-919-555-1234field4 from international format (requires country code +X) into a format defined by field5Drop an issue at https://github.com/zaus/f3i-phonenumber
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-NationalNumberyour label-_etc_From here, among other places