I’m working on a plugin where I’d like to easily get the domain of a the site, and want to make sure it gets the mapped domain if that’s the case. Is there a simple function I can just call to get the current site’s domain?
(Yes – I could write a manual query against wp_domain_mapping first, but I’d think I’m just missing a much easier way to do this.)
I’ve tried things like home_url(), and get_option(‘siteurl’), but none of these return the mapped domain. (even though it looks like domain mapping is adding filters to these calls…hrm…)
Any quick help? Thanks!
- The topic ‘[Plugin: WordPress MU Domain Mapping] Easily get mapped domain of a site?’ is closed to new replies.