contact_form_is_spam_akismet
Filter the results returned by Akismet for each submitted contact form.
Description
Parameters (2)
- 0. $result (unknown)
- The result.
- 1. $form (unknown)
- The form.
Usage
- To run the hook, copy the example below.
- $result = apply_filters( 'contact_form_is_spam_akismet', $result, $form );
- if ( !empty( $result ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the contact_form_is_spam_akismet callback
- function filter_contact_form_is_spam_akismet( $result, $form ) {
- // make filter magic happen here...
- return $result;
- };
- // add the filter
- add_filter( 'contact_form_is_spam_akismet', 'filter_contact_form_is_spam_akismet', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'contact_form_is_spam_akismet', 'filter_contact_form_is_spam_akismet', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /modules/contact-form/grunion-contact-form.php
- return apply_filters( 'contact_form_is_spam_akismet', $result, $form );