On activation the plugin creates DB table called dm visitor location with IP, Time, Continent, Country, Country Code, City, Post ID, id.. IP is grabbed with PHP at the plugin level and passed to API request to IPStack, returning Continent, Country, Country Code and City.. The function behind the shortcode will get IP, check if IP exists in DB for Post ID. The record exists if IP and Post ID match.. This check is done order to save API requests, only updating the timestamp on IPs that were already sent via API request.. Two shortcodes are available for use this one will check the visitor details and create update the records and show the notification message. this one will show the 10 countries that visited the page .. For Multiple visitors you have %dm vln visitor number% shows the number of visitors %dm vln countries% displays list of country codes %dm vln flags% displays list of flags instead of country codes %dm vln country flags% displays list of country codes associated with the flag.. IPs are stored in DB hashed under MD5... On deactivation nothing happens with DB records, but once you delete the plugin via WP Dashboard DB table will be removed... Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more