Àpèjúwe
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Ìtumọ̀ Yorùbá: ’s libphonenumber, which may be included via Composer instead Ìtumọ̀ Yorùbá: — see GitHub version instead.
Ìgbéwọlẹ̀
- Unzip/upload plugin folder to your plugins directory (
/wp-content/plugins/) - Make sure Forms 3rdparty Integration is installed and settings have been saved at least once.
- Activate this plugin
- 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): * FIELDNAME-CountryCode = country code * FIELDNAME-NationalNumber = regional number (without country code) * FIELDNAME-AreaCode = regional code * FIELDNAME-Subscriber = local number (without area code) * FIELDNAME-Extension = telephone extension, if present * FIELDNAME-NumberOfLeadingZeros = how many zeros it would start with if it had them * FIELDNAME-Out = reformated phone number
Example: to convert input phone-number “9195551234” in various fields:
field_name&field2=US,2&field3=2,3&field4=##field5
field_namefrom assumed format into standard international+1 919-555-1234field2assuming US country code into standard regional(919) 555-1234field3from international format (requires country code+X) into url styletel:+1-919-555-1234field4from international format (requires country code+X) into a format defined byfield5
FAQ
- It doesnÌtumọ̀ Yorùbá: ’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)
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“Forms: 3rdparty Phone Numbers” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “Forms: 3rdparty Phone Numbers” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.
Àkọsílẹ̀ àwọn àyípadà
0.4.3
- bump giggsey/libphonenumber to v7.6.1 to fix missing autoloader file
0.4.2
- addressing spaces in url key quirk
0.4
- updated libphonenumber from v7.2.2 to v7.4.5
- including area code + subscriber number components
0.3
- use another submission field as the format
0.2
- support for input/output format
0.1
- started