[WordPress] 外掛分享: Logged in

首頁外掛目錄 › Logged in
10+
安裝啟用
☆☆☆☆
1/5 分(1 則評價)
4758 天前
最後更新
問題解決
WordPress 2.7+ v1.0.4 上架:2011-09-21

內容簡介

此外掛讓您可以將網站對非登入使用者進行關閉,透過將他們重新導向至登入頁面、顯示訊息或特定樣板檔案達成。此外掛可進行設定讓訪客重新導向至登入頁面、使用您的佈景主題佈局顯示簡短訊息或顯示位於您的 stylesheet_directory 中的候用檔案。

過濾器

可用過濾器及預期回傳的值列表。

logged_in_url_is_valid:讓您透過回傳 true 或 false 驗證所有 URL。參數指示有效性和 URL。
logged_in_cb:自訂處理未登入使用者的情況,而非使用前述內建動作的自訂回呼函式。您應該回傳函式名稱或指標。
logged_in_action:在已被禁止的 URL 時進行的操作(有效的回傳值為:fallback、message 與 login)。
logged_in_redirect_status:重新導向至登入頁面時使用的 HTTP 重新導向狀態碼。預設為 302。
logged_in_fallback_filename:位於您的 stylesheet_directory 中的候用檔案,由 fallback 動作使用。
logged_in_fallback_path:候用檔案的完整路徑,由 fallback 動作使用。
logged_in_message:由 message 動作顯示的訊息。
logged_in_login_redirect_url:成功登入後前往的 URL。

作者

羅馬尼亞語地區化由 Web Hosting Geeks 貢獻。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Allows you to close your site to non-logged in users, by redirecting them to the login page, displaying a message or a specific template file. The plugin can be configured to redirect visitors to login page, display a short message using your themes layout or display a fallback file located in your stylesheet_directory.
Filters
List of available filters and their expected return values.

logged_in_url_is_valid: Let’s you validate all URL’s by returning true or false. Parameters indicating validity and URL.
logged_in_cb: A custom callback to handle the case of users who are not logged in of your choice, instead of using one of the built in actions. You should return a function name or pointer.
logged_in_action: An action to take when requested URL is not allowed (valid return values are: fallback, message and login).
logged_in_redirect_status: HTTP redirect status code to use when redirecting to login page. Defaults to 302.
logged_in_fallback_filename: A fallback file located in your stylesheet_directory, used by the fallback action.
logged_in_fallback_path: A full path to the fallback file, used by the fallback action.
logged_in_message: A message displayed by the message action.
logged_in_login_redirect_url: The URL to goto after successful login.

Credits

Romanian localization by Web Hosting Geeks

延伸相關外掛

文章
Filter
Apply Filters
Mastodon