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.
This hook can be used to run filter on duplicate check values.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter( 'frm_duplicate_check_val', 'my_custom_function' );
Parameters
- $check_val (array)
Examples
Check for a match without including IP
This example will check for a match without including IP in the search
add_filter( 'frm_duplicate_check_val', 'my_custom_function' );
function my_custom_function( $check_val ) {
if ( 123 === (int) $check_val['form_id'] ) { //replace 123 with the id of the form you need to catch
unset( $check_val['ip'] );
}
return $check_val;
}