There is a checkbox in the DM settings for using the original domain for wp-admin.
Thanks for your reply, Ron. That doesn’t exactly do what I want. I may not have explained it well. Basically, with the option you suggested set and a mapped domain (say mymappeddomain.com), the user can go to demo.myrootdomain.com and login. That’s great. But all the admin menu links and such on the front end use the mapped domain so if the user clicks View Page they end up on mymappeddomain.com, not demo.myrootdomain.com.
This causes a problem for the user because my htaccess file prevents the user from going to the admin via the mapped domain so all those links in the admin menu won’t work. What I’d like to have happen is for the mapping plugin to go dormant if the user is logged in. This way, they’re forced to login via demo.myrootdomain.com and clicking to the front end will take them to a URL on the demo.myrootdomain.com, not mymappeddomain.com.
Does that make sense?
Thanks!
Does that make sense?
Yes. You’re going to have to write some custom code to do that.
Yes, that’s totally my expectation. I know this is a terribly open ended question but I’m wondering if you can give me 25 words or less 🙂 of guidance on where to consider putting that hack. I realize it’s not something you would support; I’m must looking for a nudge in the right direction.
Also, it sounds like this isn’t something you’d find interesting enough to put in the actual plugin. Is that right?
Thanks!
I’m wondering if you can give me 25 words or less 🙂 of guidance on where to consider putting that hack.
To be honest I haven’t ever thought about how one might go about doing that.
Would it be as easy as just wrapping a bulk of the code in a !is_user_logged_in() ?
http://codex.wordpress.org/Function_Reference/is_user_logged_in
Would it be as easy as just wrapping a bulk of the code in a !is_user_logged_in() ?
No, because the domain lookup happens long before WP can determine if you are logged in. WP has to determine what domain to retrieve the auth cookie from before retrieving said cookie.