Skip to content

proudcity/wp-proud-ip-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Proud IP Block

Provides IP address blocking based on the MaxMind GeoLite 2 API. This currently integrates with Gravity Forms version > 2.5 via gform_validation filter.

ProudCity is a Wordpress platform for modern, standards-compliant municipal websites.

All bug reports, feature requests and other issues should be added to the wp-proudcity Issue Queue.

Filters

proud_ip_block_allow_countries

This filter allows you to change the list of allowed countries. By default we only allow US as a valid country. To add Canada we'd use the following code.

function add_canada( $countries ){

    $countries[] = 'CA';

    return $countries;

}
add_filter( 'proud_ip_block_allowed_countries', 'add_canada', 10, 1 );

Country codes conform to MaxMind ISO standards. See ISO Country codes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages