Add the following code to your site and customize it to suit (see Adding custom code for help). If the given value $value fails your own validation, then set $valid to false and set the error message by calling $element->addError(‘Your error message’);. See the examples below. Require that the value is equal to a string … Continue reading Creating a custom validator
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed