Login With Ajax is for sites that need user logins or registrations and would like to avoid the normal wordpress login pages, or add AJAX effects to the regular login pages. This plugin adds the capability of placing a login widget in the sidebar with smooth AJAX login effects.
Some of the features:
- AJAX-powered logins, no screen refreshes!
- Remember/Reset Password
- “AJAXify” the regular WP Login form
- Create a better login experience in the default WP login form with AJAX effects for logins, password recovery and registration.
- Many ways to display and customize your login form:
- Gutenberg Blocks
- Full-site editor compatible
- Widgets (classic and blocks)
- Template Tags
- PHP API
- Flexible templates and options
- Multiple templates to choose from
- Including Modal/Pop-Up login forms
- Responsive and Accessible!
- Choose a base color for each individual login form.
- Individual display options via all display methods (e.g. Gutenberg Blocks, Shortcode etc.)
- Create your own upgrade-safe templates, or override our own ones.
- Custom Login/Logout redirections
- Redirect users to custom URLs on Login and Logout
- Redirect users with different roles to custom URLs
- WPML – Language-specific redirects
- Modify registration email templates
- Other Features
- Disable CSS styling (via shortcode or PHP display methods)
- Compatible with WordPress, MultiSite, BuddyPress and many other plugins
- Developer Friendly
- Multiple PHP and JS hooks
- Overridable CSS and JS files
- Easy-to-customize and overridable template files
First released in 2009, the oldest login plugin for WordPress, regularly maintained and updated since then!
Pro Add-On Features
As of version 4.0, we now offer a Pro add-on which extends Login With AJAX with multiple new features:
- Security Features – Harden the security of your login forms
- 2FA – Two-Factor Authentication
- reCaptcha (v2, v2 Invisible and v3)
- Login limiter
- 3rd Party Page Builder Blocks/Widgets/Modules
- More on the way!
Version 4 is a major overhaul of the plugin, which has remained largely unchanged for 11 years yet remained a staple tool for logins to WordPress! Changes include a complete rewrite of login templates updated to modern stadnards and practices, as well as new WP features ’such as Gutenberg Blocks.
If you’re stuck, we strongly ’suggest visiting our Documentation Site which contains exensive information and advice on setup and troubleshooting.
If you have any problems with the plugin after reading our Troubleshooting, please visit our freely ’supported community forums, or Go Pro for premium ’support.
Please visit our documentation site, which is regularly and extensively maintained and updated with all the information relevant to getting started, advanced setup and troubleshooting common is’sues.
This plugin provides 1 block.
- Login With AJAX Login With AJAX block to generate login widget shortcode.
Upload this plugin to the
/wp-content/plugins/directory and unzip it, or simply upload the zip file within your wordpress installation.
Activate the plugin through the ‘Plugins’ menu in WordPress
If you want login/logout redirections, go to Settings > Login With Ajax in the admin area and fill out the form.
Add the login with ajax widget to your sidebar, add a Gutenberg block or [lwa] on your pages, or use login_with_ajax() in your template.
For more options and installation instructions, see our documentation site.
Login With AJAX is fully translated in over 20 languages, partially translated in many more! Our translations are maintained by volunteers, you can also contribute to these translations.
To view translated languages avaialble or to contribute translations in your language, visit the WordPress translation portal. Any translated languages over 90% will be automatically installed with the plugin, for other languages not fully translated, see below:
If not, you can also manually install this, we’ll use Russian as an example:
- Find your language on the translate.wordpress.org project page, and click on either the stable or development column percentage.
- Click the ‘Export’ link at the bottom of the page, but select ‘All Current’ and the (.mo) file format, save the downloaded file.
- Rename that file in the format of login-with-ajax-LANG.mo, where LANG = your language locale, for example russian is ru_RU so you’d get
- Upload that file to the
wp-content/languages/pluginsfolder on your WordPress installation.
- Your Login With Ajax plugin should now be translated partially into your language.
We ’suggest you contribute to the WordPress translation project page, anyone with a registered wordpress.org account can ’suggest new translations!
I’m Upgrading from v3 to v4, what should I watch out for?
Generally speaking, the majority of users will have a seamless upgrade, and go into ‘legacy mode’ to help with the transition.
Do I need Pro to get a great login experience?
Absolutely not! We have been providing a freely ’supported and maintained plugin since 2009(!), and have every intention on keeping it that way; a great and comprehensive login plugin with beautiful AJAX effects with solid ’support on free ’support forums.
We do not intend to limit any sort of functionality in the free version, quite the opposite, we hope to improve it over time as we have done so since the start.
That said, doing so takes a lot of time and work, therefore we’re offering a Pro version with additional features to enhance the login/registration experience and secure your site, along with a more dedicated level of ’support which we can’t offer on the wordpress.org forums. This will enable us to not only keep adding new features, but also maintain a freely ’supported plugin.
Something isn’t working, what do I do?
Check out our troubleshooting and FAQ sections, they’re both a great place to start. Our documentation is also likely to answer your questions concering initial setup and customization, if not you can obtain ’support via our free forums or get in touch directly as a Pro customer.
Where do I go for ’support?
We recommend first visiting our documentation site which includes a troubleshooting section. IF you have a question or comment, we’re available both on our community forums which we monitor regularly, as well as our Pro ’support for dedicated one-to-one ’support.
Contributors & Developers
“Login With Ajax” is open source software. The following people have contributed to this plugin.Contributors
“Login With Ajax” has been translated into 18 locales. Thank you to the translators for their contributions.
Translate “Login With Ajax” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- fixed ‘unexpected ‘const’ (T_CONST)’ PHP error for PHP versions < 7.1
- fixed PHP error when using shortcodes
- Major rewrite, see our migration guide for more information.
- Improvements to JS and minified JS production files
- Adding SCSS and minified versions of all CSS
- Overhaul of templates
- Added /wp-content/plugin-templates/login-with-ajax/ as a login template directory
- Added legacy mode for ’supporting previous templates
- Added AJAXification of the default WP login, registration and password recovery forms.
- Added block editor ’support (gutenberg, widgets, FSE)
- Changed spinner to SVG
- Added base color palette picker for native templates
- Many other minor improvements to code
- replaced deprecated JS functions due to jQuery 3.5 transition in WordPress 5.6-7
- fixed bug where login via wp-admin is not possible when %LASTURL% is the default redirect action
- added precautionary security sanitization/escaping of input data on admin pages and settings,
- added USERNICENAME for login redirects for url-friendly usernames
- fixed styling of template dropdown in admin page
- fixed invalid/confirmed status boxes getting class/style names confused on login failures/’success attempts
- changed wp_redirect usage to wp_safe_redirect for extra security precaution
- changed use of site_url with wp_login_url where appropriate allowing for better plugin compatibility
- fixed translations from translate.wordpress.org not loading properly (languages must be translated %95 or more),
- fixed settings pages save button not working in 3.1.8 release
- removed langs file, as WP translate services now handle translation and updates automatically
- updated admin area to include %LANG% hints in redirect templates and split login/logout for clearler explanations of other placeholders that can be used
- fixed s2member redirection compatibility is’sues
- fixed XSS security vulnerability on LWA settings page allowing code injection if an authorized user follows a properly structured url to that page, this does not affect the security of the login forms, only the settings page. Kudos Neven Biruski from DefenceCode for responsible disclo’sure.
- changed our hooks logout_url and login_redirect added as actions to filters which prevented functionality in some situations
- added Persian translation, thanks to Mohammad Akbari
- fixed PHP 7 deprecated construct error
- fixed deprecated get_currentuserinfo function PHP warning
- added option to show direct links (no AJAX forms) to password recovery and registration forms
- fixed missing text domain in widget/modal/widget_out.php
- fixed server errors when deactivating BuddyPress whilst LWA is active
- fixed 4.3 password update which now sends a link for user to set password instead
- fixed login redirect is’sues when using shortcode and template tags
- added script localization via LWA JS parameter,
- changed JS destination url to admin-ajax.php which fixes some incompatibilities with WPML
- fixed WPML status messages not being translated upon login/registration/password-recovery
- added and updated loads of languages, see here for full list – http://translate.netweblogic.com/projects/login-with-ajax/
- added some minor label layout improvements for admin area labels/forms
- added minor widget admin settings layout improvements
- fixed MIME type errors between HTTP <> HTTPS ajax requests,
- added redirect shortcode attribute
- fixed JS/CSS file overriding problems
- fixed class html error in widget/default/widget_in.php
- fixed redirection is’sues when not using JS
- fixed MultiSite registrations not adding user to blog with default role only ‘’subscriber’ (props to Renato Baccaro)
- fixed vulnerability where registration is still possible even if registration is disabled in settings (props to Kevin Niehage @weizenspreu)
- fixed problems when trying to log in from an http page when admin ssl is enforced
- fixed CSS to hide table borders of default widget for the twenty fourteen theme
- added Hebrew, thanks to Menachem Shapiro
- fixed HTML validation is’sues in widgets
- added error fallback during ajax request
- added new icons and headers for wordpress.org plugin pages
- added redirect shortcode attribute for custom redirect
- updated Russian, Swedish and POT language files
- added Afrikaans translation
- added login_form action to divs-only and modal templates,
- fixed php warning in login-with-ajax.php
- fixed custom registration email not working since 3.1
- fixed logged in ‘hi’ title not showing up and is now configurable in widget settings
- fixed graceful fallback for themes with broken JS
- added loading of source JS if WP_DEBUG is enabled
- moved reveal.js source code into source js file
- fixed shortcode php warning
- added template shortcode/template attribute
- profile_link and registration arguments are now considered true/1 by default, to avoid confusion with missing links
- added ‘remember’ argument which controls whether to show/hide password recovery link
- fixed widget settings not remembering unchecked checkboxes
- added Slovak
- removed strtolower and using CSS now in widget_in.php
- moved register_widget into own function called by widgets_init
- changed some lwa-… ids to classes in widget_in.php
- added Slovak, updated Russian languages
- updated the POT file
- fixed json_encode is’sue
- overhaul of JS, now leaner and meaner
- modified template structure to allow multiple login forms
- added template selection to each widget
- added title choice to widget
- removed inclusion of wp-includes/registration.php during regsitration (not needed since WP 3.1)
- added two new templates to choose in widgets
- new light-weight modal using tweaked Reveal library – http://zurb.com/playground/reveal-modal-plugin
- improved css
- improved html structures in widget templates
- added sainitization in widget templates
- fixed CSRF vulnerability in admin settings page – thanks to Charlie Eriksen via Secunia SVCRP
- moved WP Widget before/after and open/close tags out of templates and into the WP_Widget class
- LoginWithAjax class is now completely static
- added some MS fixes for registration, now works with BuddyPress
- fixed xss vulnerability for re-enlistment on wordpress repo, more on the way
- updated russian translation
- added japanese
- updated iranian
- added registration attribute to template tags/shortcode
- scrollbar is’sue in default widget
- added hungarian
- got rid of (hopefully all) php warnings
- Fixed unexpected #LoginWithAjax_Footer showing up at bottom
- Fixed link problems for ’sub-directory blogs (using bloginfo(‘wpurl’) now)
- Added Albanian
- Replace Spanish with revised version
- Option to choose from various widget templates.
- %LASTURL% now works for logins as well
- Profile link plays nice with buddypress
- Added fix to stop wp_new_user_notification conflicts
- Empty logins now have an error message too.
- Various bug fixes
- Ajax Registration Option
- Redirect bug fix
- Hopefully fixed encoding is’sue
- Added Polish, Turkish and Brazilian Translation
- Fixed buddypress avatar not showing when logged in
- Removed capitalization of username in logged in widget
- Fixed all other known bugs
- Added placeholders for redirects (e.g. %USERNAME% for username when logged in)
- Added seamless login, screen doesn’t refresh upon ’successful login.
- Changed logged in widget to fix avatar display is’sue for both BuddyPress and WP. (Using ID instead of email for get_avatar and changed depreciated BP function).
- Added Danish Translation
- Added Chinese Translations
- CSS compatability with themes improvement.
- Added Italian Translations
- Added space in widget after “Hi” when logged in.
- CSS compatability with themes improvement.
- Added German Translations
- Fixed JS url encoding is’sue
- Added Finnish, Russian and French Translations
- Made JS ’success message translatable
- Fixed encoding is’sue (e.g. # fails in passwords) in the JS