3
Apply_Filters hooks (like WPForms)

Wpforms has this two hooks:

1) wpforms_process_filter

I use this filter to check emails and body

………….

$Sql="SELECT ID FROM Antispam_Email WHERE Email='" . strtolower($myemail) . "'";

$params = array();

$options = array( "Scrollable" => SQLSRV_CURSOR_KEYSET );

$stmt = sqlsrv_query($connection, $Sql, $params, $options);

$row_count = sqlsrv_num_rows($stmt);

if ($row_count>0){

$errore=true;

wpforms()->process->errors[ $form_data['id'] ] ['footer' ] = esc_html__( 'ANTISPAM: YOUR EMAIL HAS BEEN BLOCKED!', 'plugin-domain' );

}

sqlsrv_free_stmt($stmt);

……………………………….

2) wpforms_process_before

For example the antispam plugin wp-armour use the wpforms_process_before to stop execution. Now it’s not compatible of course. I didn’t try your honeypot yet, so I don’t know if it is power as wp-armour :)

Join the conversion, Login to Reply


Upvoters
3
user-img
Feature Details

Status: In Review

Board: Divi Form Builder

Created: 18 July 2024

Last Updated: 21 August 2024

Posted By: william

© 2024 Divi Engine