This plugin allows you to create special links that check whether user is logged in and then follow the link if they are or show login form in simple lightbox if they are not.
Once the user fills out the login form with valid credentials they will be logged in and redirected to the page the link points to..
Let's say you've got page on your site that only logged in users are able to access.
It could be private page or ideally it's page that is set up to show login form to users.
When the user fills out the form, second ajax request is sent to the server to attempt to log them in, and if successful the user is redirected to the page..
This plugin includes lots of hooks and filters that allow for all sorts of customizations and unique use cases.
The hooks mm ajax login before form inside and mm ajax login after form inside allow you to add any custom input elements to the form.
When the login form is submitted all of the values from the input elements included in the form will get passed to PHP function that processes the ajax request.
You can intercept the data using this filter and proceed with any custom action you want, like registering new users and logging them in during the same action..
Use selector for the trigger link prefix custom login trigger { Custom selector goes here $selector = my-custom-selector return $selector }.
Read more