Someone using my plugin/theme surprised me by making their site address different than their install address with the "Enter the address here if you want your site homepage to be different from the directory you installed WordPress." option.
They've installed at:
www . thesite . com / blog /
And their actual wordpress site shows up at
www . thesite . com
Which function properly delivers the filepath (not URL) leading to www . thesite . com ? I have a unique case where this is needed.
Considering random cases, it would have to work if a user chooses www . thesite . com / random / location /
If the site as a whole was installed at www . thesite . com / blog virtually every URL and *file*path is relative to that location. BUT if they modify their settings so that the blog is shown at a different spot OTHER than the install director ( such as www . thesite .com OR www . thesite . com / somerandom / chosen / url ) what I need is the FILE PATH to that location.
REASON: I have a network of sites running, and the plugin installs certain network oriented files at their "home" location.