Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('sln.shortcode.details.dispatchForm.validate_bind_values', function ($isValid, $values, $step) {
- $vat = $values['partita_iva'];
- if (strlen($vat) !== 11) {
- $step->addError(__('Valore errato, controlla il numero inserito.', 'salon-booking-system'));
- $isValid = false;
- }
- return $isValid;
- }, 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement