Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Validation: Required fields.
- if ( ! empty( $field['required'] ) && empty( $_POST[ $key ] ) ) {
- wc_add_notice( sprintf( __( '%s is a required field.', 'woocommerce' ), $field['label'] ), 'error' );
- }
Add Comment
Please, Sign In to add comment