16 lines
524 B
PHP
16 lines
524 B
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) exit;
|
|
foreach($_POST as $param => $value){
|
|
if(strpos($param, 'et_pb_contactform_submit') === 0){
|
|
$is_divi_form = 'true';
|
|
$divi_form_additional = str_replace('et_pb_contactform_submit', '', $param);
|
|
}
|
|
}
|
|
|
|
if(!empty($is_divi_form) && $is_divi_form == 'true'){
|
|
if (wpa_check_is_spam($_POST)){
|
|
do_action('wpa_handle_spammers','divi_form', $_POST);
|
|
echo "<div id='et_pb_contact_form{$divi_form_additional}'><p>".$GLOBALS['wpa_error_message']."</p><div></div></div>";
|
|
die();
|
|
}
|
|
} |