Title: Custom Validation
Last modified: November 6, 2017

---

# Custom Validation

 *  Resolved [Kadai](https://wordpress.org/support/users/kadai/)
 * (@kadai)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-validation-10/)
 * Hello,
    i just bought this plugin and i need your help. I want to add custom 
   validation to input. I have added custom input field with meta name “pwz” and
   i have function like this. How to connect it?
 *     ```
       		function check_pwz_number ($number)
   
       		{
       		    if (strlen($number) != 7 || preg_match('/^0+$/', $number)) return false;
       		    $c = (int)$number[0];
       		    $n = substr($number, 1);
       		    $s = 0;
       		    for ($i = 1; $i <= 6; $i ++) $s += (int)$n[$i - 1] * $i;
       		    return ($s % 11) == $c ? true : false;
       		}
       ```
   
 * Thanks
    K

Viewing 1 replies (of 1 total)

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-validation-10/#post-9658677)
 * Hello [@kadai](https://wordpress.org/support/users/kadai/),
 * Since you are using a paid version of our plugin you need to [open a ticket on our website](https://www.cozmoslabs.com/support/open-ticket/).
   Either describe the issue again or link this topic.
 * Thank you and regards.

Viewing 1 replies (of 1 total)

The topic ‘Custom Validation’ is closed to new replies.

 * ![](https://ps.w.org/profile-builder/assets/icon-256x256.png?rev=2961144)
 * [User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor](https://wordpress.org/plugins/profile-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/profile-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/profile-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/profile-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profile-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profile-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/custom-validation-10/#post-9658677)
 * Status: resolved