Title: Problem with function &quot;is_user_logged_in()&quot;
Last modified: August 31, 2016

---

# Problem with function "is_user_logged_in()"

 *  [Chriber](https://wordpress.org/support/users/chriber/)
 * (@chriber)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/problem-with-function-is_user_logged_in/)
 * Hi,
 * I tried to use the plugin “Force Login” (which uses the function “is_user_logged_in()”
   to hide page structure until you’re logged in) on a mapped domain.
    The plugin“
   Force Login” works as soon as Domain mapping is switched of, but when the domain
   is mapped, as described in the [forum of the other plugin](https://wordpress.org/support/topic/redirect-to-wp-login-1?replies=4):
 * -> login on the mapped domain “abcdef.ch”
    -> being sent to backend of abc.xyz.
   bla.com -> click view site -> being sent back to login on “abcdef.ch” -> and 
   so on…
 * Any ideas what’s going wrong?
 * Thanks in advance!
 * [https://wordpress.org/plugins/wordpress-mu-domain-mapping/](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/problem-with-function-is_user_logged_in/#post-6912317)
 * Turn off the use dashboard in original domain setting in the DM settings.

Viewing 1 replies (of 1 total)

The topic ‘Problem with function "is_user_logged_in()"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/problem-with-function-is_user_logged_in/#post-6912317)
 * Status: not resolved