Viewing 1 replies (of 1 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    Depends on where in the theme you call the method etc.
    Something along the lines of:

    <?php
    $ret = geoip_detect2_get_info_from_current_ip();
    if ($ret->extra->error)
    echo ‘<script>alert(“Error”);</script>’;

Viewing 1 replies (of 1 total)
  • The topic ‘Fallback function for errors’ is closed to new replies.