jetpack_contact_form_is_spam
Filter whether the submitted feedback is considered as spam.
Description
Parameters (2)
- 0. $false (bool) =>
false
- False Is the submitted feedback spam? Default to false.
- 1. $meta (array)
- Feedack values returned by the Akismet plugin.
Usage
- To run the hook, copy the example below.
- $false = apply_filters( 'jetpack_contact_form_is_spam', $false, $meta );
- if ( !empty( $false ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the jetpack_contact_form_is_spam callback
- function filter_jetpack_contact_form_is_spam( $false, $meta ) {
- // make filter magic happen here...
- return $false;
- };
- // add the filter
- add_filter( 'jetpack_contact_form_is_spam', 'filter_jetpack_contact_form_is_spam', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'jetpack_contact_form_is_spam', 'filter_jetpack_contact_form_is_spam', 10, 2 );
Defined (3)
The filter is defined in the following location(s).
- /modules/contact-form/admin.php
- $is_spam = apply_filters( 'jetpack_contact_form_is_spam', false, $meta );
- /modules/contact-form/grunion-contact-form.php
- add_filter( 'jetpack_contact_form_is_spam', array( $this, 'is_spam_akismet' ), 10, 2 );
- $is_spam = apply_filters( 'jetpack_contact_form_is_spam', false, $akismet_values );