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 filter the allowed IP addresses in spam check.
Usage
add_filter( 'frm_allowed_ips', 'allowed_ips' );
Parameters
- $ips (array): IP addresses
Examples
Filter the allowed IP addresses
Use this code example to filter the allowed IP addresses in spam check.
add_filter( 'frm_allowed_ips', function( $ips ) {
$ips[] = '192.168.1.1'; //Replace with the allowed IP address
return $ips;
});