
內容簡介
這是一個 Contact Form 7 的外掛,可新增一種包含國旗及區碼的輸入欄位類型。它會自動偵測使用者所在的國家。
如何使用
安裝和啟用此外掛後,您的 Contact Form 7 表單中會新增一種輸入欄位。為了將其新增到您的表單中,您可以點擊表單編輯器上方的「帶國家區碼的電話號碼」按鈕,或者使用類似以下的短碼: [country_code* {your-phone}],將 {your-phone} 替換為您想要給欄位的名稱。您可以使用星號 (*) 來設定欄位為必填。
要在電子郵件中顯示欄位的資訊,請使用此標籤: [{your-phone}]。它會顯示類似 +12025550109 的內容。
第三方軟體
在此外掛中,我們使用了 International Telephone Input JavaScript 函式庫和 eXTReMe-IP-LOOKUP.com API。
外掛標籤
開發者團隊
② 後台搜尋「Country Code Drop Down For CF7」→ 直接安裝(推薦)
原文外掛簡介
Contact Form 7 addon to create a new type of input for entering country code with flag. It adds a country code with flag dropdown, auto detects the user’s country.
How to use
Once you have installed and activated your plugin, a new type of input field will be available in your Contact Form 7 forms. In order to add it to your form, you can either click on the “Tel with country code” button above your form editor, or add the shortcode like: [country_code* {your-phone}]. Replace {your-phone} by the name do you want to give the field. Optionally, you can use the asterisk (*) to makes the field required.
To display the field’s info on your email, use this tag: [{your-phone}]. It will display something like +12025550109
Third-party software
In this plugin we uses the International Telephone Input JavaScript library and the eXTReMe-IP-LOOKUP.com API.
