WordPress.org

Íslenska

  • Þemu
  • Viðbætur
  • News
  • About
  • Hafa samband
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Force User Login

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Force User Login

Höfundur: smatric
Sækja
  • Details
  • Reviews
  • Installation
  • Development
Aðstoð

Lýsing

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.

Uppsetning

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

SOS

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.

Umsagnir

There are no reviews for this plugin.

Þátttakendur & höfundar

“Force User Login&#8221 er opinn hugbúnaður. Eftirfarandi aðilar hafa lagt sitt af mörkum við smíði þessarar viðbótar.

Höfundar
  • smatric

Translate “Force User Login” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Breytingarsaga

1.0.2

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

Tækni

  • Version 1.0
  • Last updated 10 ár síðan
  • Active installations 50+
  • WordPress version 2.0.2 or higher
  • Tested up to 4.3.34
  • Language
    English (US)
  • Tags
    force user loginloginpasswordprivacy
  • Advanced View

Einkunnir

No reviews have been submitted yet.

Add my review

See all reviews

Höfundar

  • smatric

Aðstoð

Eitthvað sem þú vilt segja? Þarftu hjálp?

Skoða hjálparspjallborð

Styrkja

Viltu styrkja áframhaldandi þróun á þessari viðbót?

Styrkja þessa viðbót

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Íslenska

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Kóði er ljóð.