None my codesnippet works after last upgrade, UX broken in backend and frontend.
You have a great plugin but there are 40 modules that not works now, help please. For example the below code not works and broke all the site…
add_action('fluentform_before_insert_submission', function ( $insertData, $data, $formId ) {
if($formId != 3) {
return;
}
$isExist = wpFluent()->table('fluentform_submissions')
->where('user_id', $insertData['user_id'])
->where('form_id', $formId )
->count();
if ( $isExist >=2 ) //for max3 times
{
wp_send_json(['errors' => [
'restricted' => ['Sorry, you reached your voting limit! You can vote again in the next round.']
]], 422);
}
}, 10, 3 );
Regards!
- This topic was modified 2 hours, 21 minutes ago by . Reason: Inserted example code that not works