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 define new content inside a Business Directory suntab settings section in the WordPress admin.
Usage
add_filter( 'frm_process_antispam', 'my_custom_function' );
Parameters
- $is_valid (bool|string) Is valid entry or not.
Examples
Check if an entry is valid or not
This example will check if an entry is valid or not after spam check
add_filter( 'frm_process_antispam', 'my_custom_function' );
function my_custom_function( $is_valid ) {
if ( $is_valid !== true ) {
//do something
}
return $is_valid;
}