I am not sure where the filter em_osm_default_tiles should be implemented. Usually such filters are implemented in the theme’s functions.php. But the filter is called as the plugin is being constructed, and functions.php is called later, when the theme is being loaded. Wouldn’t it be better to call the method later, say in get_location_tiles?
- You must be logged in to reply to this topic.