Ip2location plugin in my template header?
I’m assuming you’re using “IP2Location Tag WordPress Plugin”. In main file of IP2Location plugin, the class instance is created and assigned to the variable. $ip2location_tags = new IP2LocationTags(); To use the plugin in theme, just use the global variable $ip2location_tags. Remember to make sure that the class IP2LocationTags exists first and use global keyword. if … Read more