[WordPress] 外掛分享: WP Login Form

首頁外掛目錄 › WP Login Form
WordPress 外掛 WP Login Form 的封面圖片
7,000+
安裝啟用
★★★★
4.6/5 分(13 則評價)
102 天前
最後更新
問題解決
WordPress 3.0+ v1.0.13 上架:2017-08-10

內容簡介

WordPress 登入表單:能幫您在 WordPress 網站的前端建立一個簡單的登入表單,您可以使用短碼將其加入文章、頁面或側邊列等位置。

如何為 WordPress 建立自訂的登入頁面?

若您希望透過預設選項建立登入表單或自訂登入頁面,您只需要使用以下短碼:

[wp_login_form]

然而,您也能透過傳遞其他參數來自訂短碼。

redirect

使用絕對 URL,以便成功登入後導向使用者進入其他頁面。例如:

[wp_login_form redirect="https://example.com/mypage/"]

預設將導向表單提交頁面。

form_id

自訂登入表單的 ID。例如:

[wp_login_form form_id="myloginform"]

預設 ID 為 “loginform”。

label_username

自訂使用者名稱/電子郵件欄位的標籤。例如:

[wp_login_form label_username="Login ID or Email"]

預設為 “Username or Email Address”。

label_password

自訂密碼欄位的標籤。例如:

[wp_login_form label_password="Login Password"]

預設為 “Password”。

label_remember

自訂「記住我」欄位的標籤。例如:

[wp_login_form label_remember="Remember"]

預設為 “Remember Me”。

label_log_in

自訂表單提交按鈕的標籤。例如:

[wp_login_form label_log_in="Submit"]

預設為 “Log In”。

id_username

自訂使用者名稱欄位的 ID。例如:

[wp_login_form id_username="wp_user_login"]

預設 ID 為 “user_login”。

id_password

自訂密碼欄位的 ID。例如:

[wp_login_form id_password="wp_user_pass"]

預設 ID 為 “user_pass”。

id_remember

自訂「記住我」欄位的 ID。例如:

[wp_login_form id_remember="login_rememberme"]

預設 ID 為 “rememberme”。

id_submit

自訂表單提交按鈕的 ID。例如:

[wp_login_form id_submit="login_form_submit"]

預設 ID 為 “wp-submit”。

remember

是否於 WordPress 登入表單中顯示「記住我」勾選框。例如:

[wp_login_form remember="0"]

預設為 “1”(是)。

value_username

自訂使用者名稱輸入欄位中的暫存區。例如:

[wp_login_form value_username="Your Username"]

預設為 NULL。

value_remember

指定是否預設勾選「記住我」欄位。例如:

[wp_login_form value_remember="1"]

預設為 “0”(否)。

lost_password

是否於表單中顯示「忘記密碼」連結。例如:

[wp_login_form lost_password="0"]

外掛標籤

開發者團隊

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

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

原文外掛簡介

WP Login Form allows you to create a simple login form for use anywhere on the front end of your WordPress site. You can add it to a post, page or your sidebar with a shortcode.
WP Login Form Add-ons

Force Redirect
Custom Error

How to Create a Custom Login Page for WordPress

In order to create a login form or custom login page for WordPress with the default options, all you need to do is use this shortcode:
[wp_login_form]

However, there are other parameters that you can pass in the shortcode to customize it.
redirect
An absolute URL to which the user will be redirected after a successful login. For example,
[wp_login_form redirect="https://example.com/mypage/"]

The default is to redirect back to the URL where the form was submitted.
form_id
Your own custom ID for the login form. For example,
[wp_login_form form_id="myloginform"]

The default is “loginform”.
label_username
Your custom label for the username/email address field. For example,
[wp_login_form label_username="Login ID or Email"]

The default is “Username or Email Address”.
label_password
Your custom label for the password field. For example,
[wp_login_form label_password="Login Password"]

The default is “Password”.
label_remember
Your custom label for the remember field. For example,
[wp_login_form label_remember="Remember"]

The default is “Remember Me”.
label_log_in
Your custom label for the form submit button. For example,
[wp_login_form label_log_in="Submit"]

The default is “Log In”.
id_username
Your own custom ID for the username field. For example,
[wp_login_form id_username="wp_user_login"]

The default is “user_login”.
id_password
Your own custom ID for the password field. For example,
[wp_login_form id_password="wp_user_pass"]

The default is “user_pass”.
id_remember
Your own custom ID for the remember field. For example,
[wp_login_form id_remember="login_rememberme"]

The default is “rememberme”.
id_submit
Your own custom ID for the form submit button. For example,
[wp_login_form id_submit="login_form_submit"]

The default is “wp-submit”.
remember
Specify whether to display the “Remember Me” checkbox in the WordPress login form. For example,
[wp_login_form remember="0"]

The default is “1” (true).
value_username
Your custom placeholder attribute for the username input field. For example,
[wp_login_form value_username="Your Username"]

The default is NULL.
value_remember
Specify whether the “Remember Me” checkbox in the form should be checked by default. For example,
[wp_login_form value_remember="1"]

The default is “0” (false).
lost_password
Specify whether to display a lost password link in the form. For example,
[wp_login_form lost_password="0"]

The default is “1” (true).
label_lost_password
Your custom label for the lost password link. For example,
[wp_login_form label_lost_password="Reset Password"]

The default is “Lost your password?”.
How to Enable Google reCAPTCHA
WP Login Form supports Google reCAPTCHA v3 to protect your login form against spam and other types of automated abuse. To enable this feature, go to “Settings > WP Login Form” and configure these options.

Enable Google reCAPTCHA v3
Site Key

For detailed documentation please visit the WordPress Login Form plugin page

延伸相關外掛

文章
Filter
Apply Filters
Mastodon