Heads up!
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.
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.
Disable the comment blacklist check on some or all forms.
Usage
add_filter( 'frm_check_blacklist', 'disable_form_blacklist', 10, 2 );
Parameters
- $check (boolean) - true if the blacklist should be checked
- $values (array) - the values included in the form
Examples
Disable blacklist check for all forms
add_filter( 'frm_check_blacklist', '__return_false' );
Disable blacklist check for a single form
If you need to disable the blacklist check for only one form, you can use this example.
add_filter( 'frm_check_blacklist', 'limit_check_blacklist', 10, 2 );
function limit_check_blacklist($check, $atts){
if ( $atts['form_id'] == 25 ) { //replace 25 with the id of the form you would like to disable the blacklist check on.
$check = false;
}
return $check;
}