This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this filter to enable or disable the denylist spam check.
Usage
add_filter( 'frm_check_denylist', 'check_denylist_spam_check' , 10, 2 );
Parameters
- $is_enabled (boolean): Is true if it's enabled.
- $values (array): The entry values.
Examples
Disable the denylist spam check for a specific form
Use this code example to disable the Denylist Spam check for a specific form.
add_filter( 'frm_check_denylist', function( $is_enabled, $values ) {
if ( 10 == $values['form_id'] ) { // Where 10 is the form ID.
return false;
}
return $is_enabled;
}, 10, 2 );
Disable the denylist spam check
add_filter( 'frm_check_denylist', '__return_false' );