[WordPress] 外掛分享: Login Redirection Link

首頁外掛目錄 › Login Redirection Link
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4162 天前
最後更新
問題解決
WordPress 3.5+ v1.0 上架:2014-04-17

內容簡介

這個外掛會在前端的所有登入和登出連結中加入「redirect_to」參數,其值為目前網站的 URL。因此,當您登入或登出後,會被重新導向到該網站。但如果該連結已包含「redirect_to」參數,則此外掛不會進行更改。

這個外掛只會影響前端的連結,不會觸及 wp-login.php 和後台管理頁面的連結。

這個外掛在 login_url 與 logout_url 上新增了一個鉤子。您的程式碼必須呼叫使用這些篩選器的函數。例如 wp_loginout。

外掛標籤

開發者團隊

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

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

原文外掛簡介

The plugin adds the ‘redirect_to’ parameter to all login and logout links in front-end. The value is the URL of the current site. Thus you’re redirected to that site after login respectively logout. But if a link contains already a ‘redirect_to’ parameter, the plugin doesn’t change it.
The Plugin affects only the links in front-end. These in wp-login.php and in admin back-end aren’t touched.
The plugin hooks into login_url and logout_url. Your code has to call functions which make use of that filters. For example wp_loginout.

文章
Filter
Apply Filters
Mastodon