WordPress MU Domain Mapping
Easily get mapped domain of a site? (1 post)

  1. 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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Jason Lemahieu (MadtownLems)
  • This topic is not resolved
  • WordPress version: 3.3.1