Widget Generation Developer API
WSL Widget is generated by the function wsl_render_auth_widget()
defined in /includes/widgets/wsl.auth.widgets.php. This function come with few actions and filters that you may use to customize the widget even further.
To simplify things, we broke the process to this simple timeline of events:
Legend : action — filter.
-
wsl_render_auth_widget()
Generate the HTML content of WSL Widget
This function will start by checking if the user if already connected and if authentication are allowed through bouncer settings.
Note: Prior to 2.2.3, this function was called
wsl_render_login_form()
. -
-
-
-
-
For each enabled provider Do
Iterate over the supported providers array in order to generate the icon of each enabled provider.
-
Reset the authentication url for the current provider in loop. This url is what will trigger the Authentication Process.
-
Reset (overwrite) the current provider icon (button). For usage, refer to Code Snippets.
Please, do not submit issues here.
This comment section is for a general question and feedback. If you want to report a bug, please refer to the Support section.