Site broken after update to 3.0.0 in WP 6.1.1

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 c3media. Reason: Inserted example code that not works

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer