Title: container's Replies | WordPress.org

---

# container

  [  ](https://wordpress.org/support/users/container/)

 *   [Profile](https://wordpress.org/support/users/container/)
 *   [Topics Started](https://wordpress.org/support/users/container/topics/)
 *   [Replies Created](https://wordpress.org/support/users/container/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/container/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/container/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/container/engagements/)
 *   [Favorites](https://wordpress.org/support/users/container/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPS Hide Login] Plugin doesn’t work after $wp_query->set_404()](https://wordpress.org/support/topic/plugin-doesnt-work-after-wp_query-set_404/)
 *  Thread Starter [container](https://wordpress.org/support/users/container/)
 * (@container)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-after-wp_query-set_404/#post-17002384)
 *     ```wp-block-code
       public function login_url($login_url, $redirect, $force_reauth) {
           if (is_404()) {
               return '#';
           }
   
           if ($force_reauth === false) {
               return $login_url;
           }
   
           if (empty($redirect)) {
               return $login_url;
           }
   
           $redirect = explode('?', $redirect);
   
           if ($redirect[0] === admin_url('options.php')) {
               $login_url = admin_url();
           }
   
           return $login_url;
       }
       ```
   
 * Oops! I found the above code in the plugin, it seems the plugin is intentionally
   setting the 404 status to return `'#'`, but I guess not everyone expects this,
   sometimes I would like to provide a button on the error page for the user to 
   log in or something like that, so would it be possible to provide a switch on
   the Settings page for this function?
 * Switch on would output `'#'`, otherwise the correct link.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPS Hide Login] When the plugin is on, the is_login() function does not work.](https://wordpress.org/support/topic/when-the-plugin-is-on-the-is_login-function-does-not-work/)
 *  Thread Starter [container](https://wordpress.org/support/users/container/)
 * (@container)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/when-the-plugin-is-on-the-is_login-function-does-not-work/#post-16305349)
 * No, that’s not true
 * is_ user_ logged_ In () is used to detect whether a user is logged in.
 * While is_ Login () is used to detect whether the user is on the login page.
 * Their functions are completely different.

Viewing 2 replies - 1 through 2 (of 2 total)