內容簡介
這個外掛會在前端的所有登入和登出連結中加入「redirect_to」參數,其值為目前網站的 URL。因此,當您登入或登出後,會被重新導向到該網站。但如果該連結已包含「redirect_to」參數,則此外掛不會進行更改。
這個外掛只會影響前端的連結,不會觸及 wp-login.php 和後台管理頁面的連結。
這個外掛在 login_url 與 logout_url 上新增了一個鉤子。您的程式碼必須呼叫使用這些篩選器的函數。例如 wp_loginout。
外掛標籤
開發者團隊
原文外掛簡介
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.
