Please can you fix a deprecation notice with Fluent Forms?

[ad_1]

Hi

I have been looking at the debug log when using the WP Armour plugin version 2.1.4 with Fluent Forms version 5.0.7 and am seeing this message when I submit the form (whether acting as a bot or not, and also with PHP 7.4 and PHP 8.0:

[27-Jul-2023 09:16:17 UTC] PHP Deprecated: Hook fluentform_before_insert_submission is <strong>deprecated</strong> since version 4.3.22! Use fluentform/before_insert_submission instead. Use fluentform/before_insert_submission instead of fluentform_before_insert_submission. in …./wp-includes/functions.php on line 5788

A one character change to the file listed in the link above fixes it:

I changed line 11 from

add_action( ‘fluentform/before_insert_submission’, ‘wpa_fluent_form_extra_validation’, 10
, 3 );

to

add_action( ‘fluentform/before_insert_submission’, ‘wpa_fluent_form_extra_validation’, 10,
3 );

I hope it’s as straightforward a change as it seems.

Thanks,

Anita

The page I need help with: [log in to see the link]

 

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