Advertisement
sissou123

code related to WordPress and the WooCommerce Frontend Manager (WCFM) plugin.

Oct 13th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | Source Code | 0 0
  1. some code related to WordPress and the WooCommerce Frontend Manager (WCFM) plugin.
  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. // You can add the error message to the form data for later use
  7. $form_data['error'] = $error_message;
  8. for more:https://linkjust.com/U3DeE8fr0wvtZFIViaXZfwZ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement