BuddyPress – Validate XProfile data with PCRE regular expressions.
Author: | Tomasz "Tometzky" Ostrowski (profile at wordpress.org) |
WordPress version required: | 3.8 |
WordPress version tested: | 4.2 |
Plugin version: | 0.1.2 |
Added to WordPress repository: | 21-03-2014 |
Last updated: | 21-04-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 90 |
Rated by: | 4 |
Plugin URI: | http://wordpress.org/plugins/buddypress-xprof... |
Total downloads: | 2 259 |
Active installs: | 20+ |
Click to start download |
With this plugin you can define a PCRE regular expression against which data entered in XProfile fields will be matched.
For example:
- check webpage field for a correct(-ish) URL or domain name:
%^(https?://)?([^ :/]{1,63}\.)+[^ :/.]{2,63}%iu
- check age field for a sane(-ish) value (0-199):
/^1?[0-9]?[0-9]$/
- check phone field for a sane(-ish) value:
/^+?[0-9 -]{7,45}$/
- check any field for a minimum and maksimum length:
/^.{10,100}$/u
You can also configure a message to show when a field data does not validate.
ChangeLog