Filter: bricks/element/form/honeypot/result
Filters the result returned when a honeypot field is triggered (spam detection). This allows you to customize the error message shown to potential bots (or users who accidentally filled the hidden field).
Parameters
Section titled “Parameters”$result(array): The result array, typically containing['type' => 'error', 'message' => '...'].$field_id(string): The ID of the honeypot field that was filled.$form(object): The Form integration object.
Example usage
Section titled “Example usage”add_filter( 'bricks/element/form/honeypot/result', function( $result, $field_id, $form ) { // Customize the error message $result['message'] = esc_html__( 'Spam detected. Please do not fill out the hidden fields.', 'my-domain' );
return $result;}, 10, 3 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.