CF7 Israeli Phone Validation

By itailulu

30+ active installationsVersion 0.3

Will work on fields with name 'il_phone', ie. [tel* il_phone placeholder "Israeli Phone"]

Description

Will work on fields with name ‘il_phone’, ie. [tel* il_phone placeholder “Israeli Phone”]

Validates for the following format:
XXX-XXXXXXX or XX-XXXXXXX (with or without the hyphens \’-\’ and spaces )
and for the following area codes:
050/052/053/054/055/057/058/02/03/04/08/09/072/073/076/077/078

Installation

This section describes how to install the plugin and get it working.

e.g.

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure the field name of the field you want to validate is il_phone

FAQ

Can I add other validation rules?

Sure. Feel free to add whatever you want, but you’ll have to mess with the code 🙂

Changelog

Not available