WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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