Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter for data that is sent to Akismet #3701

Open
cfinke opened this issue Feb 22, 2022 · 0 comments
Open

Add filter for data that is sent to Akismet #3701

cfinke opened this issue Feb 22, 2022 · 0 comments

Comments

@cfinke
Copy link

cfinke commented Feb 22, 2022

What Version Of Caldera Forms, WordPress and PHP Are You Using?

WordPress Version: 5.9.1 PHP Version: 8.0.2 MySQL Version: 8.0.28 Caldera Forms Version: 1.9.6 WP_DEBUG: 1

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

Yes

What Is The Unexpected Behaviour?

I'm one of the developers of Akismet, and it would be helpful if you would add a filter on the data that is about to be sent to Akismet in Caldera_Forms::akismet_scanner(). Something like this:

$data = apply_filters( 'caldera_form_akismet_values', $data, $config, $form );

right before the line $request = http_build_query($data);. This will ensure that the Akismet plugin can add any helpful information to the request before it is sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant