This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.
added is_eu_visitor() function. this function requires pecl PHP-GEOIP package. if the package is not installed, using a custom detection method hooked to the 'gdpr_is_eu_visitor' filter.
for some reasons I had to manually create the admin option in the database ("gdpr_show_eu_only"). it didn't create automatically.
added checkbox in admin settings
added IP detection function
added is_eu_visitor() function. this function requires pecl PHP-GEOIP package. if the package is not installed, using a custom detection method hooked to the 'gdpr_is_eu_visitor' filter.
for some reasons I had to manually create the admin option in the database ("gdpr_show_eu_only"). it didn't create automatically.