Custom Input Validation
-
Hi,
I need to validate some fields and I found your “wppb_check_form_field_input” filter but the “wppbc_custom_input_validation” function is not called.I inserted this code in functions.php and after various tests I simply understood that it is not called.
In my functions.php
/* handle field validation */ add_filter( 'wppb_check_form_field_input', 'wppbc_custom_input_validation', 20, 4 ); function wppbc_custom_input_validation( $message, $field, $request_data, $form_location ){ echo "<script>console.log('TEST' );</script>"; return $message; }
What’s the problem?
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Input Validation’ is closed to new replies.