It would be good to have a honey pot in the forms
4 Likes
I’m playing, and I’m not an expert. What is written below is a working solution, but wrong. There should be actions and filters. But I do not know how or impossible at the moment.
bricks\includes\integrations\form\init.php
before line // Google ReCAPTCHA v3 (invisible)
add code
if (! empty ($_POST['email']) ) {
wp_send_json_error(
[
'code' => 400,
'action' => '',
'type' => 'danger',
'message' => 'spam',
]
);
}
bricks\includes\elements\form.php
before line // Submit button icon
add code
<?php echo '<input type="text" name="email" id="form-field-email" style="display:none !important;">'; ?>