Tag Archives: contact form7


Snippet: Phone and Fax Number Validation in Contact Form 7

Contact Form 7 is the most simple and straight forward form plugin for WordPress. It has been downloaded nearly 10 million times. It has everything to set up a simple contact form except one thing, that is, validation of a phone or fax number. This short snippet validates phone number by stripping of all non-numeric characters and checking if numeric string is of length 10 digits.


Snippet: Load Contact Form 7 javascripts where required

Add following snippet to “functions.php” Snippet