[WordPress] 外掛分享: Force User Login

首頁外掛目錄 › Force User Login
40+
安裝啟用
尚無評分
3856 天前
最後更新
問題解決
WordPress 2.0.2+ v1.0 上架:2011-11-08

內容簡介

這是一個非常小的外掛程式,強制使用者在查看任何內容之前登錄。這是透過檢查使用者是否已登錄,如果沒有,則將其重定向到登錄頁面。試圖透過 RSS 查看博客內容的使用者也通過 HTTP Auth 進行身份驗證。

修改:使用 get_site_url() 正確地將 WordPress 位於子目錄中時重定向到登錄頁面。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Force User Login」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon