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::addPiwikSite
andWP_Piwik::updatePiwikSite
they redundantly use the same code for siteName:$isCurrent ? get_bloginfo ( 'name' ) : get_blog_details ( $blogId )->$blogname
You 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
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Support for custom siteName value’ is closed to new replies.