So what is new in WordPress Custom Login 2.0? Here is a quick breakdown:
- Complete code re-write.
- 140% faster!
- Now using the WordPress settings API and a custom wrapper class
- Extendable with add-on plugins.
- More settings.
Video Preview
Updating
First off upon installing Custom Login 2.0 you be notified with an upgrade notice if you’ve ran Custom Login less than 1.1.4
. One click will upgrade your settings to be compatible with the new version.
Performance
Version 2.0 has some major speed improvements. WP Cypher mentioned how slow Custom Login was making some admin pages. The plugin no longer makes multiple feed calls and heavy JS calls.
Measured this plugin is now 140% faster!
Everything that can be cached is, either with transients
or wp_cache
. This includes the custom CSS and JS generated by the plugins settings.
Settings API
2.0 is now using the WordPress settings API and a custom wrapper class that will allow add-ons to be created. A few example add-ons are as follows:
- Coming Soon (developed)
- Stealth Login – obscure the login URL.
- In Development/ideas
- User Hash Key logins (think generated guest logins with-out having to use the login form).
- Email Logins for usernames.
- 2-step Authentication.
- Custom Login page.
- Super User only access for client sites.
- WordPress Login CSS style remover (for sites that see a quick flash of the default login page).
What the new wrapper class will allow is to add a feature that will show up on the Custom Login Settings page if it needs user input settings.
To create a custom extension you would use the following in a plugin:
'custom_login_stealth',
'title' => __( 'Stealth Login', 'domain' ),
);
return $sections;
}
/**
* Returns new settings fields for this plugin
*
* @return array settings fields
*/
function custom_login_stealth_add_settings_fields( $settings_fields ) {
$settings_fields['custom_login_stealth'] = array(
array(
'name' => 'enabled',
'label' => __( 'Enable', 'domain' ),
'desc' => __( 'Toggle this module on & off.', 'domain' ),
'type' => 'checkbox'
),
array(
'name' => 'redirect',
'label' => __( 'Redirect', 'domain' ),
'desc' => __( 'Should unauthorized users be redirected OR should the page be killed with a response?', 'domain' ),
'type' => 'checkbox'
),
array(
'name' => 'redirect_url',
'label' => __( 'Redirect URL', 'domain' ),
'desc' => __( 'The URL to redirect unauthorized attempts.', 'domain' ),
'type' => 'text',
'size' => 'large',
'default' => home_url(),
'sanitize_callback' => 'esc_url',
),
array(
'name' => 'question',
'label' => __( 'Question', 'domain' ),
'desc' => sprintf( __( 'The query variable. Ex. %s', 'domain' ), wp_login_url() . '?question
=answer' ),
'type' => 'text',
'size' => 'medium',
'default' => 'bypass',
),
);
return $settings_fields;
}
/**
* Sidebar info about this plugin
*
* @since 2.0
* @return string
*/
function sidebar( $args ) {
$content = 'Something Here';
Extendd_Plugin_Settings_API::postbox( 'custom_login_sidebar', __( 'Title', 'domain' ), $content, $hide_when_not_on_tab = true );
}
Which would then show up like so:
More Settings
More elements have been added to the default settings to help you easily design your wp-login.php page!
To download please visit WordPress.org and for all extensions visit Frosty.Media.
the stealth login feature would be an awesome addition!
Hey Mathew, that plugin is now available and can be found on the Extendd.com website.
Great plugin. I love the idea that you are going to add the ability to style the submit button in a future version. hope that comes soon as that is the only thing you can’t style directly in the admin now.
Also I noticed something else that you should do. the styling I applied to the text inside the login box doesn’t get applied if I go to register or the forgot password actions.
Styles applied to the text below the login box stay there for all 3 (login, register, forgot password) but the styles to text inside the login box don’t.
Austin,
Like the plugin and set it up on a private site … Right now it lands registered users on their profile page? Rather than the website home page. Did I goof up? Miss a setting? Something else?
Thanks …
Custom Login doesn’t handle any redirects, so that would have to come from somewhere else.
Austin, is there any chance that you can do something about
1. including the lost password page
2. redirecting after login?
Your plugin is really great and would be stupendous if you could make it cover those 2 points.
Thanks in hopeful advance π
Well, apologies for the comment I just made! You HAVE done the lost password etc. pages! π
I still have 2 questions left and then I will be totally happy …how do I get rid of the link to ‘register’ and how do I direct to a page of my choice after login?
I’m really delighted to have found your plugin as had spent hours trying to manually change the login css π
Many thanks!
Disable registration will remove that link from the wp-login.php page. Then create a custom template with the registration functionality.
Great Plugin, thanks
Just one thing.
How can I had my footer and top menu on that page?
Is there an easy way to left justify rather than have it centered?
I wish you could add fields to the login page with this! Like first name and last name, etc.
That could be a great extension!