Advertisement
sissou123

Untitled

Oct 13th, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | Source Code | 0 0
  1.  
  2. add_filter('wcfm_form_custom_validation', function ($form_data, $wcfm_screen) {
  3. // Your custom validation logic goes here
  4. if (isset($form_data['some_field']) && empty($form_data['some_field'])) {
  5. $error_message = 'Please fill out the required field.';
  6.  
  7. https://www.file-upload.org/aeylusrnb7m2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement