plugin-icon

BuddyPress XProfile Validate with RegEx

作者:Tomasz Ostrowski·
BuddyPress - Validate XProfile data with PCRE regular expressions.
评级
4.5/5
版本
0.1.2
活跃安装
10
最后更新
Apr 21, 2015

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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.2.39
这个插件是可用的下载,适用于您的站点。