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.
Use this hook to turn off Honeypot.
Usage
add_filter( 'frm_run_honeypot', 'frm_disable_honeypot' );
Parameters
- $enabled (boolean) - Return false to disable or 'limit' to hide from screenreader.
- $atts (array)
- $atts['form'] (object)
Examples
Turn off on all forms
Use this code example to turn off Honeypot on all forms.
add_filter( 'frm_run_honeypot', '__return_false' );
Turn off on one form
Use this code example to turn off Honeypot on one form.
add_filter( 'frm_run_honeypot', 'frm_disable_honeypot' );
function frm_disable_honeypot( $enabled, $atts ) {
if ( $atts['form']->id === 5 ) { //change 5 to the ID of your form
$enabled = false;
}
return $enabled;
}