Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- some code related to WordPress and the WooCommerce Frontend Manager (WCFM) plugin.
- add_filter('wcfm_form_custom_validation', function ($form_data, $wcfm_screen) {
- // Your custom validation logic goes here
- if (isset($form_data['some_field']) && empty($form_data['some_field'])) {
- $error_message = 'Please fill out the required field.';
- // You can add the error message to the form data for later use
- $form_data['error'] = $error_message;
- for more:https://linkjust.com/U3DeE8fr0wvtZFIViaXZfwZ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement