Guest User

Untitled

a guest
Jul 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function eppe_check_submission_errors($posted) {
  2.     // all of $_POST is stored in $posted
  3.     if(!isset($posted['your_field_name'])) {
  4.         edd_errors()->add('your_error_code', __('This field is required', 'eppe'));
  5.     }
  6. }
  7. add_ction('edd_checkout_error_checks', 'eppe_check_submission_errors');
Add Comment
Please, Sign In to add comment