Title: Basic Front-End Login
Author: Mitchell Bennis
Published: <strong>2020 年 10 月 16 日</strong>
Last modified: 2025 年 12 月 25 日

---

搜索插件

![](https://ps.w.org/basic-front-end-login/assets/icon-256x256.png?rev=3173916)

# Basic Front-End Login

 作者：[Mitchell Bennis](https://profiles.wordpress.org/eemitch/)

[下载](https://downloads.wordpress.org/plugin/basic-front-end-login.zip)

 * [详情](https://cn.wordpress.org/plugins/basic-front-end-login/#description)
 * [评价](https://cn.wordpress.org/plugins/basic-front-end-login/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/basic-front-end-login/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/basic-front-end-login/#developers)

 [支持](https://wordpress.org/support/plugin/basic-front-end-login/)

## 描述

Adds a basic front-end login for to any page, post or widget and redirects to the
page you choose. It also can block access to the back-end and disable the Admin 
Bar. This plugin is for when you want your users to be logged-in, but do not want
them to have access to the WordPress Dashboard.

To display the login form, place this shortcode on any page, post, or widget: _[
eeBFEL]_

After the user has logged in, they will be redirected to your home page or the URL
you define in the plugin settings. You can also optionaly display a logout button
at the bottom-right of each page.

### Redirect After Login

To define destinations in additional login forms, use the “redirect” attribute to
over-ride the default. There is no limit to the number of forms you can use.

_[eeBFEL redirect=”https://website.com/your-files-page/”]_

### Deny Dashboard Access

In the plugin settings you can optionally select roles that you want to deny back-
end access to. All built-in and custom roles, except Administrator, can be blocked.
The Admin Bar will not appear and direct back-end access attempts will simply redirect
to your home page. This restriction will be site-wide and is unrelated to the use
of the shortcode.

Even if you don’t need a login form, this can add an extra measure of security to
your website by denying back-end access to all roles except Administrators.

### NEW – Show a Logout Button

Optionally show a small logout button on the bottom-right of each page if the user
is logged in. Logging out returns the user to the home page.

## 屏幕截图

 * [[
 * Basic Login Form
 * [[
 * Plugin Settings

## 安装

Just like most other WordPress plugins…

 1. To install, simply use the amazing WordPress plugin installer, or upload the plugin
    zip file to your WordPress website, and activate it.
 2. A new main menu item will appear: **Settings > Login Form** Click on this.
 3. Configure the redirect URL and check the roles you wish to deny back-end access.
 4. To add the login form to your website, simply add this shortcode:
     **_[eeBFEL redirect
    =”https://website.com/your-files-page/”]_**

## 常见问题

### What is this plugin for?

I wrote this plugin because I needed a front-end login form, but didn’t want the
users to have any access to the back-end.

### Can’t the users just type in the dashboard address to reach it?

No. Any user with the chosen roles will be prevented from viewing the WordPress 
Dashboard.

### How do users log out?

If users return to the login page, a “Log Out” link will appear. You can also add
a Log Out link on your page like this…

    ```
    <a href="https://your-website.com/wp-login.php?action=logout">Log Out</a>
    ```

## 评价

![](https://secure.gravatar.com/avatar/286bbd7da701f7e9cab7508e66704e875112337eb9ee68a41b3280157071c56d?
s=60&d=retro&r=g)

### 󠀁[Absolutely Fake](https://wordpress.org/support/topic/absolutely-fake/)󠁿

 [mrk197702](https://profiles.wordpress.org/mrk197702/) 2022 年 9 月 27 日

Doesn’t work for all!!! :)))))))))))))

![](https://secure.gravatar.com/avatar/bf7da4d7e54aaf901913739ad272a33ceea84da50d93dd1533ab8cdb7384a266?
s=60&d=retro&r=g)

### 󠀁[Worked like a charm](https://wordpress.org/support/topic/worked-like-a-charm-229/)󠁿

 [kimruddock](https://profiles.wordpress.org/kimruddock/) 2022 年 7 月 18 日

Super simple to use, super lightweight, does the job perfectly!

![](https://secure.gravatar.com/avatar/4d4885fe33f75dc441625a5879e905197d36d5e117abd2b3c11d60a826ae7fb3?
s=60&d=retro&r=g)

### 󠀁[Minimalistic, simple – love it !](https://wordpress.org/support/topic/minimalistic-simple-love-it/)󠁿

 [mschloeg](https://profiles.wordpress.org/mschloeg/) 2022 年 2 月 3 日

This man is the MVP. Plugin does exactly what is says. Nothing more nothing less.
Exactly what I was looking for. Thank You!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/)

## 贡献者及开发者

「Basic Front-End Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mitchell Bennis ](https://profiles.wordpress.org/eemitch/)

[帮助将「Basic Front-End Login」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/basic-front-end-login)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/basic-front-end-login/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/basic-front-end-login/)，或通过[RSS](https://plugins.trac.wordpress.org/log/basic-front-end-login/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/basic-front-end-login/)。

## 更新日志

#### 1.3.1

 * Added global logout button option
 * Admin UI improvements
 * Improved file structure and many code improvements
 * Accessability and security Improvements
 * Updated translations

#### 1.2.1

 * Added Copy-to-Clipboard function for the shortcode string
 * Added Check All / Uncheck All to the Restriction options
 * Updated security
 * Updated code base
 * Renamed back to Basic Front-End Login

#### 1.1.4

 * Renamed the Plugin from Basic Front-End Login to Simple Front-End Login

#### 1.1.3

 * Moved the menu item into the Users menu
 * Completed translations

#### 1.1.1

 * Initial Public Release

#### 1.0.2

 * Expanded for public distribution.

#### 1.0.1

 * Basic build for Simple File List, File Access Manager demo login.

## 额外信息

 *  版本 **2.1**
 *  最后更新：**4 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/basic-front-end-login/)
 * 标签
 * [login form](https://cn.wordpress.org/plugins/tags/login-form/)[login redirect](https://cn.wordpress.org/plugins/tags/login-redirect/)
   [user login](https://cn.wordpress.org/plugins/tags/user-login/)
 *  [高级视图](https://cn.wordpress.org/plugins/basic-front-end-login/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/basic-front-end-login/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/basic-front-end-login/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/basic-front-end-login/reviews/)

## 贡献者

 *   [ Mitchell Bennis ](https://profiles.wordpress.org/eemitch/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/basic-front-end-login/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://elementengage.com/shop/plugin-donation/)