• Hello,

    Im getting to grips with your plugin and it’s AWESOME.

    I have a little request that’s over my technical ability.

    I have Cloudflare Geolocation which allows me to capture the country code for the user’s IP with this:

    $country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];

    Is it possible to take this and create an ‘if’ statement that would compare the user IP with an ACF field for country codes e.g

    [If $country_code and field=country_codes keyword=GB]
    //this text//
    [if]

Viewing 1 replies (of 1 total)
  • You can use it if you can get it into a variable. Build for example a short-code returning the country-code from Cloudflare, set a variable with it and use the variable in the if clause.

Viewing 1 replies (of 1 total)
  • The topic ‘Cloudflare Geolocation’ is closed to new replies.