Title: Force User Login
Author: smatric
Published: <strong>2011-11-09</strong>
Last modified: 2015-08-28

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

![](https://s.w.org/plugins/geopattern-icon/force-user-login-modified.svg)

# Force User Login

 Autor: [smatric](https://profiles.wordpress.org/smatric/)

[Pobierz](https://downloads.wordpress.org/plugin/force-user-login-modified.1.0.2.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/force-user-login-modified/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/force-user-login-modified/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/force-user-login-modified/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/force-user-login-modified/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/force-user-login-modified/)

## Opis

This is a very small plugin that forces users to login before viewing any content.
This is done by checking if the user is logged in, and if not, redirecting them 
to the login page. Users attempting to view blog content via RSS are also authenticated
via HTTP Auth.

Modification: use get_site_url() to redirect to the login page properly when WordPress
is located in a subdirectory.

## Instalacja

 1. Upload `force-login.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the 'Plugins’ menu in WordPress

## Najczęściej zadawane pytania

  Can I change where the user is redirected after logging in?

Yes! A variable called $redirect_to (line 33) is currently set to redirect the user
to the page they were trying to access. If you changed that line from

    ```
    $redirect_to = $_SERVER['REQUEST_URI'];
    ```

to

    ```
    $redirect_to = '/';
    ```

it would redirect the user to the home page.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Force User Login” jest oprogramowaniem open source. Poniższe osoby miały wkład 
w rozwój wtyczki.

Zaangażowani

 *   [ smatric ](https://profiles.wordpress.org/smatric/)

[Przetłumacz wtyczkę “Force User Login” na swój język.](https://translate.wordpress.org/projects/wp-plugins/force-user-login-modified)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/force-user-login-modified/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/force-user-login-modified/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/force-user-login-modified/)
przez [RSS](https://plugins.trac.wordpress.org/log/force-user-login-modified/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 1.0.2

 * Tested with WordPress 4.3
 * Updated meta description
 * A screenshot added

## Meta

 *  Wersja **1.0**
 *  Ostatnia aktualizacja **11 lat temu**
 *  Włączone instalacje **40+**
 *  Wersja WordPressa ** 2.0.2 lub nowszej **
 *  Testowano do **4.3.34**
 *  Język
 * [English (US)](https://wordpress.org/plugins/force-user-login-modified/)
 * Tagi
 * [force user login](https://pl.wordpress.org/plugins/tags/force-user-login/)[login](https://pl.wordpress.org/plugins/tags/login/)
   [password](https://pl.wordpress.org/plugins/tags/password/)[privacy](https://pl.wordpress.org/plugins/tags/privacy/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/force-user-login-modified/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

[Your review](https://wordpress.org/support/plugin/force-user-login-modified/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/force-user-login-modified/reviews/)

## Zaangażowani

 *   [ smatric ](https://profiles.wordpress.org/smatric/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/force-user-login-modified/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](http://Don't%20worry%20about%20it)