The security features in every browser prevent servers from accessing information that the browser has from another domain. You have to log into the mapped domain for is_user_logged_in() to return true.
Hi Ron,
Thanks for the reply, this is good to know!
Ah, thank you, Ron. So, does this mean that if I have my front-end mapped to a custom domain, while my back-end is at the default subdomain, that I’m out of luck? Because I can’t figure out how to log into the mapped domain when the login page is directed at the default subdomain. Am I missing something obvious?
Try turning on the remote login setting.
Remote login is enabled. The first four domain options are checked, the last one unchecked.
Have you tested to see whether the remote login is working?
Yes, it works fine. So, if I go to http://customdomainname.com/wp-admin, I will be redirected to the login screen for http://subdomain.maindomain.com.
Is that what you mean?
After that redirect & you log in are you logged in to both the subdomain and the mapped domain?
You can go to a single post and look at the comment form to see if you are logged in.
Ron, hm. I guess not, although I DO see the “Edit This” link.
You wouldn’t see the edit this link unless you were logged in. If is_user_logged_in is returning false in that scenario then you have something interfering with it.
If it was domain mapping you wouldn’t see the edit this link.