[WordPress] 外掛分享: WP Logout Redirect

首頁外掛目錄 › WP Logout Redirect
WordPress 外掛 WP Logout Redirect 的封面圖片
400+
安裝啟用
★★★★★
5/5 分(3 則評價)
82 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v2.0 上架:2019-07-11

內容簡介

這是一個簡單的外掛程式,會在登出後將使用者導向首頁。它沒有更新選項,沒有手動 URL 設定,也不會帶來任何麻煩,它非常單純易懂!它只做一件事,就是在登出 WordPress 管理面板後將使用者重新導向到首頁。

開發者也可以透過鉤子 wplr_home_url 添加他們自己的自訂重定向 URL,如下所示:

add_filter('wplr_home_url',function($url){
return "https://wordpress.org";
});

錯誤、技術提示或貢獻

請在 GitHub 存儲庫 上提供回饋、貢獻和技術錯誤報告。

外掛標籤

開發者團隊

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

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

原文外掛簡介

WP Logout Redirect allows you to control where users are redirected after logging out of your WordPress site. By default, WordPress redirects users to the login page, but this plugin gives you full control over the logout experience.
Version 2.1 brings a complete UI overhaul, offering a refined, accessible, and developer-friendly experience.
Features

Modern Admin Panel – A refined, editorial-style interface for easy configuration.
Dark Mode Support – Automatically adapts to your system’s color scheme.
Accessible Design – Fully optimized for screen readers and keyboard navigation.
Quick Presets – One-click settings for Homepage or Login Page redirects.
Page Selector – Easily pick any of your existing pages from a dropdown.
Developer Friendly – Programmatically override settings using the wplr_home_url filter hook.
Lightweight & Secure – Built with performance and WordPress security standards in mind.

Usage
After activation, go to Settings → Logout Redirect in your WordPress admin panel.

Manual URL: Enter any custom URL in the input field.
Page Selector: Choose an existing page from the dropdown to automatically fill the URL.
Presets: Use the “Quick Presets” buttons for common destinations.
Save: Click “Save Configuration” to apply changes.

Developer Hook
Developers can programmatically override the redirect URL using the wplr_home_url filter hook. This takes precedence over admin settings.
add_filter('wplr_home_url', function($url) {
return 'https://example.com/custom-destination';
});

延伸相關外掛

文章
Filter
Apply Filters
Mastodon