內容簡介
這是一個小型的 WordPress 外掛,可以讓你「隱藏」網站的前端,所有已登入使用者的前端請求會被重新導向到 WordPress 後台 (可透過過濾器調整)。
這個外掛尤其對開發人員有用,如果你正在開發一個網站並希望讓使用者在你處理前端時可以進入後台查看。此外,如果你有一個沒有前端的網站,也可以用來讓使用者總是停留在後台。
此外,該外掛還包含以下過濾器:
- `rfe_redirect_caps`:控制繞過重定向所需的功能,預設讓管理員可以進入前端 (預設:`manage_options`)
- `rfe_redirect_url`:更改重新導向的 URL (預設:`admin_url()`)
外掛標籤
開發者團隊
原文外掛簡介
A small plugin that lets you “hide” the front-end of a site, all front-end requests of logged-in users are redirected to the WP Dashboard (filterable).
Useful mainly for developers, if you’re developing a site and want to give users access to see the dashboard while you’re working on the front-end. Also can be used if you have a site with no front-end and always want users to stay on the dashboard.
Filters included:
rfe_redirect_caps: Control capabilities required to bypass redirect, lets Administrators access front-end by default (default: manage_options)
rfe_redirect_url: Change the redirect URL (default: admin_url())
