Support for custom siteName value
-
Currently, siteName is passed to Piwik as blog name, which makes it somewhat useless when we get a list of thousands of sites, especially combined with different MU networks. Blog names don’t work well in this case. Would be nice to pass the domain name instead.
I see there are only 2 methods that pass siteName to PiWik:
WP_Piwik::addPiwikSiteandWP_Piwik::updatePiwikSitethey redundantly use the same code for siteName:$isCurrent ? get_bloginfo ( 'name' ) : get_blog_details ( $blogId )->$blognameYou could extract that line into a separate method and add a public filter to the value, this was we could easily change the site name value on demand.
Would you be interested in adding this functionality?
Thanks
The topic ‘Support for custom siteName value’ is closed to new replies.