- Requires at least: WordPress 3.9 and TinyMCE 4
- Tested up to: 4.0
- Not tested with versions lower than 3.9... Your mileage may very.
- Stable tag: trunk
- License: GPLv2
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
Add a WordPress login form anywhere you can put a shortcode
Add a WordPress Login form/Logout link anywhere you can put a shortcode.
This plugin came out of the need to add custom login to a page that could hook into the client's existing users and roles.
[jcg-login-form]
This shortcode uses all of the existing arguments for wp_login_form:
-
echo - echo out to browser immediately.
- Default: FALSE (print to page).
-
redirect - Page to redirect to after login.
- Default: current page.
$_REQUEST['redirect_to']
|$_SERVER['REQUEST_URI']
- Default: current page.
-
form_id
- Default: 'loginform'
-
label_username
- Default: 'Username'
-
label_password
- Default: 'Password'
-
label_remember
- Default: 'Remember Me'
-
label_log_in
- Default: 'Log In'
-
id_username
- Default: 'user_login'
-
id_password
- Default: 'user_pass'
-
id_remember
- Default: 'rememberme'
-
id_submit
- Default: 'wp-submit'
-
remember
- Default: TRUE
-
value_username
- Default: NULL
-
value_remember
- Default: FALSE
It also add some extra functionality:
-
logged_in_msg - Message to display if the user is already logged in
- Default: 'You are already logged in!'
-
login_form_top - This is text that goes above the form
- Default: 'Login'
-
login_form_top_tag - This is the HTML tag that wraps the login_form_top
- Default:
h2
- Ex: h3
- Default:
-
login_form_middle - This is text that goes between 'password' and 'remember_me'
- Default: ''
-
login_form_bottom - This is text that goes below the 'submit' button
- Default: ''
-
form_top_class - Class to add to the
<span>
tag that wraps element- Default: ''
-
form_middle_class - Class to add to the
<span>
tag that wraps element- Default: ''
-
form_bottom_class - Class to add to the
<span>
tag that wraps element- Default: ''
[jcg-logout]
This shortcode talkes the following arguments:
-
id - id attribute for the
<a>
tag- Default: ''
-
class - class attribute for the
<a>
tag- Default: ''
-
style - style attribute for the
<a>
tag- Default: ''
-
text - Text to put inside of the
<a>
tag- Default: ''
-
xattr - Extra attributes for the
<a>
tag.- Default: ''
- Useful for mobile/responsive attributes.
This section describes how to install the plugin and get it working.
-
Upload: Unzip
jgrundner_login_form_shortcode.zip
file, and upload thejgrundner_login_form_shortcode
folder to your WordPress installation's/wp-content/plugins/
directory -
Activate: In the admin panel, goto
Plugins -> Installed Plugins
, active 'JCG Login Form Anywhere'. -
Use it two ways:
A. You will see a new button in the TinyMCE Editor in post and pages, use this button to add a login form.
B. Or: Place
[jcg-login-form]
shortcode anywhere that accepts shortcodes.
No one has asked any yet.
- Add TinyMCE button for login form
- Objectify code
- Add uninstaller
- This is the initial version of the plugin.