International Phone Number Format
by Mohamed Endisha 5 (2 reviews)

International Phone Number Format

The International Phone Number Format plugin allows you to effortlessly format and validate international phone numbers within WooCommerce and WordPre …

Tested up to WP 6.3 (Current: 6.9)
v1.0.0 Current Version v1.0.0
Updated 2 years ago Last Update on 25 Nov, 2023
Synced 11 hours ago Last Synced on
Rank
#9,564
-12 this week
Active Installs
400+
-22.8%
KW Avg Position
49.4
+6.8 better
Downloads
2.6K
+3 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (2 reviews)

Next Milestone 500

Total Progress 98%
400+ 500+
13
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 2 more installs to reach 500+

Rank Changes

9,529 9,539 9,549 9,559 9,569 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
9,512 9,527 9,542 9,556 9,571 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
9,469 9,496 9,523 9,549 9,576 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
9,469 9,496 9,523 9,549 9,576 22-10-2025 23-10-2025 24-10-2025 25-10-2025 26-10-2025 27-10-2025 28-10-2025 29-10-2025 30-10-2025 31-10-2025 01-11-2025 02-11-2025 03-11-2025 04-11-2025 05-11-2025 06-11-2025 07-11-2025 08-11-2025 09-11-2025 10-11-2025 11-11-2025 12-11-2025 13-11-2025 14-11-2025 15-11-2025 16-11-2025 17-11-2025 18-11-2025 19-11-2025 20-11-2025 21-11-2025 22-11-2025 23-11-2025 24-11-2025 25-11-2025 26-11-2025 27-11-2025 28-11-2025 29-11-2025 30-11-2025 01-12-2025 02-12-2025 03-12-2025 04-12-2025 05-12-2025 06-12-2025 07-12-2025 08-12-2025 09-12-2025 10-12-2025 11-12-2025 12-12-2025 13-12-2025 14-12-2025 15-12-2025 16-12-2025 17-12-2025 18-12-2025 19-12-2025 20-12-2025 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
Current #9,564
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 10 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 10 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 10 22-10-2025 25-10-2025 28-10-2025 31-10-2025 03-11-2025 06-11-2025 09-11-2025 12-11-2025 15-11-2025 18-11-2025 21-11-2025 24-11-2025 27-11-2025 30-11-2025 03-12-2025 06-12-2025 09-12-2025 12-12-2025 15-12-2025 18-12-2025 21-12-2025 24-12-2025 27-12-2025 30-12-2025 02-01-2026 05-01-2026 08-01-2026 11-01-2026 14-01-2026 17-01-2026 20-01-2026
0 10 20 20-01-2025 01-02-2025 13-02-2025 25-02-2025 09-03-2025 21-03-2025 02-04-2025 14-04-2025 26-04-2025 08-05-2025 20-05-2025 01-06-2025 13-06-2025 25-06-2025 07-07-2025 19-07-2025 31-07-2025 12-08-2025 24-08-2025 05-09-2025 17-09-2025 29-09-2025 11-10-2025 23-10-2025 04-11-2025 16-11-2025 28-11-2025 10-12-2025 22-12-2025 03-01-2026 15-01-2026 20-01-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
2 reviews
Overall 100%
5
2 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 5 of 5
Keyword Position Change Type Updated
international 10 Tag 14 hours ago
mask 22 Tag 14 hours ago
phone 57 Tag 14 hours ago
format 61 Tag 14 hours ago
number 97 Tag 14 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
1.0.0
Last Updated
Nov 25, 2023
Requires WP
6.0+
Tested Up To
6.3
PHP Version
8.0 or higher

Support & Rating

Rating
★ ★ ★ ★ ★ 5
Reviews
2
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about International Phone Number Format

<?php
add_filter('woocommerce_shipping_fields', function ($fields)
{
$fields['shipping_phone']['type'] = 'tel';
$fields['shipping_phone']['label'] = __('Shipping Phone Number', 'woocommerce');
$fields['shipping_phone']['class'] = array('form-row-wide');
$fields['shipping_phone']['required'] = false;
return $fields;
}, 10, 1);
Add the custom field using the intl_phone_number_format_fields filter. Here's an example code snippet:

<?php
add_filter('intl_phone_number_format_fields', function ($fields){
$fields[] = array(
'id' => 'mobile',
'enable' => true,
'desc' => 'Mobile phone number on the profile page',
'label' => 'Mobile',
'frontend_validation' => true, // JS frontend validation
'backend_validation' => true, // Backend validation
'countries' => 'all', // Countries related to fields (all, billing, or shipping)
'type' => 'custom', // Field type (custom, billing, or shipping)
);
return $fields;
});

Display the added field in the frontend "My Account" details section. Use the following code:

<?php
add_action('woocommerce_edit_account_form_start', function () {
$user = wp_get_current_user();
?>
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
<label for="mobile"><?php _e('Mobile phone', 'woocommerce'); ?>
<span class="required">*</span></label>
<input type="text" class="woocommerce-Input woocommerce-Input--phone input-text" name="mobile" id="mobile" value="<?php echo esc_attr($user->mobile); ?>" />
</p>
<?php
});

Implement validation for the field. Use the woocommerce_save_account_details_errors action hook along with the intl validation service:

<?php
add_action('woocommerce_save_account_details_errors', function (WP_Error $errors) {
$fields = (new IPNFP_Fields_Service)->get_fields();
$validated = (new IPNFP_Validate_Service)->validate($fields);
if (!empty($validated)) {
foreach ($validated as $field => $error) {
$errors->add($field, $error);
}
}
}, 10, 1);

Save the user's input for the field:

<?php
add_action('woocommerce_save_account_details', function (int $user_id) {
if (isset($_POST['mobile'])) {
$mobile = sanitize_text_field($_POST['mobile']);
update_user_meta($user_id, 'mobile', $mobile);
}
}, 10, 1);

In case the JS file is not included, you can include it using:

<?php
add_filter('intl_phone_number_format_validate_enqueue_js', function ($valid){
if (is_account_page()) {
$valid = true;
}
return $valid;
});

By following these steps, the field should be included and formatted with the International Phone Number Format mask.
How to Add Additional Validation for Specific Country Numbers
You have the flexibility to add custom validation using regular expressions for specific countries. If you need to enforce a specific format for phone numbers in a particular country, you can achieve this by the intl_phone_number_format_custom_country_prefixes_validation filter.

Here's an example scenario: Let's assume you want to apply custom validation rules for Libyan phone numbers, allowing only a specific format. In this case, you can utilize the following filter to associate the country calling code with the regular expression pattern:

<?php
// The structure should follow this format:
// 'calling code' => 'regular expression pattern'
add_filter('intl_phone_number_format_custom_country_prefixes_validation', function ($patterns) {
$patterns['+218'] = '^\+2189[1-6][0-9]{7}$';
return $patterns;
});

How do I modify fields?
The plugin provides several filters that allow you to modify the fields, including built-in fields such as billing_phone, _billing_phone, shipping_phone, and _shipping_phone, as well as custom fields that you added using intl_phone_number_format_fields filter.

This filter allows you to enable or disable the field.

intl_phone_number_format_modify_{FIELD}_enable

This filter allows you to enable or disable JS frontend validation for the specified field.

intl_phone_number_format_modify_{FIELD}_frontend_validation

This filter to enable or disable backend validation for the specified field.

intl_phone_number_format_modify_{FIELD}_backend_validation

This filter to adjust the countries that will be shown as calling codes for the field. Accepted values are: all, billing, and shipping.

intl_phone_number_format_modify_{FIELD}_countries

This filter to define the field type. For example, if the field is related to billing, set it as billing. If it's for shipping, set it as shipping. Otherwise, set it as custom.

intl_phone_number_format_modify_{FIELD}_type

Sign In / Register

You need to sign in or register to use this feature.