Gravity Forms international phone input
最近更新 2025年06月25日
资源编号 99057

Gravity Forms international phone input

售后服务丨一次搭建,终身售后!7*24小时,全天候技术支持!
购买建站套餐:送国际域名、服务器、SSL证书、PAYPAL等国际流行支付!:
22
VIP折扣
    折扣详情
  • 基础套餐

    22.00 元10折

  • 高级套餐

    22.00 元10折

  • 企业套餐

    22.00 元10折

  • 集团套餐

    22.00 元10折

购买建站套餐,不懂技术,不懂美工,也可以搭建优质外贸独立站!
购买主题 查看演示 建站套餐
详情介绍

This plugin can be used for for easy phone number input in international format with using flags of countries. Consist the option to set country automatically (using client IP) and phone number validation.
To start plugin work – you need to activate it and enable “Friendly int. phone field” on your “Phone” field. It’s really simple.

Also check WP WooCommerce version of the plugin here: Link

Features:

  • New! Ability to prevent form submit without correct phone number[s]
  • Comfortable usability via admin panel
  • Works with any WordPress theme
  • Cross browser compatibility
  • No coding required

Available filters:

  • gfip_prevent_wrong_phone_submit – Prevent form submit without correct phone number[s]
  • gfip_success_message – Custom “Phone is correct” frontend message
  • gfip_fail_message – Custom “Phone is incorrect” frontend message
  • gfi_show_only_countries – accept array of country codes which you want to show in list
  • gfi_initial_country – initial country code, if not set it will take user country country from IP address
  • gfi_preferred_countries – array of preferred countries

Available filters examples:

add_filter('gfip_prevent_wrong_phone_submit', function ($enabled) {
    $enabled = true;
    return $enabled;
}, 10, 1);

 add_filter( 'gfip_success_message', function ($message) {
    $message = 'Correct!';
    return $message;
 }, 10, 1 );

 add_filter( 'gfip_fail_message', function ($message) {
    $message = 'Incorrect :(';
    return $message;
 }, 10, 1 );

add_filter('gfi_show_only_countries', function(){
    return ['ua', 'us', 'gb'];
});

add_filter('gfi_initial_country', function(){
    return 'ua';
});

add_filter('gfi_preferred_countries', function(){
    return ['ua', 'gb'];
});
v 1.2.3 - 22/02/2025
- Compatibility fixes (+ Orbital theme support)

v 1.2.2 - 09/07/2021
- Changed the way of phone validation
(from now phone number will be validated on keyup event instead of the blur event)

v 1.2.1 - 24/09/2020
- Localization implemented
- Ability to prevent form submission without correct phone number[s]

v 1.2 - 22/03/2020
- Filters added

v 1.1.1 - 02/11/2019
- Bug fix

v 1.1 - 12/08/2019
- Multiple forms instances on a single page support added

v 1.0 - 07/07/2019
- First stable release
打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)
常见问题

相关独立站主题

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务