1. Home
  2. Docs
  3. Plugin Documentation
  4. Hooks Reference

Hooks Reference

Action Hooks Reference

StranoWeb Ajax Login has some action hooks that developers can use:

Login Form Hooks

  • swal_login_form_before_input_fields – (action) Placed on SWAL login form before input fields;
  • swal_login_form_below_input_fields – (action) Placed on SWAL login form below input fields before login button;
  • swal_login_form_below_button – (action) Placed on SWAL login form below login button;
  • swal_login_form_text – (action) Placed on SWAL login form on text and image area after plugin text;

Register Form Hooks

  • swal_register_form_before_input_fields – (action) Placed on SWAL register form before input fields;
  • register_form_extra_fields – (action) Fires extra fields in the user registration form;
  • register_form – (action) Fires following the previous hook in the user registration form;
  • swal_register_after_submit_button – (action) Placed on SWAL register form after submit button;
  • swal_register_end_of_form – (action) Placed on SWAL register form at the end of the form;
  • swal_register_form_text – (action) Placed on SWAL register form on text and image area after plugin text;

Forgot Password Form Hooks

  • swal_forgot_password_form_before_input_fields – (action) Placed on SWAL forgot password form before input fields;
  • lostpassword_form – (action) Fires inside the lostpassword form tags, before the hidden fields;
  • swal_forgot_password_end_of_form – (action) Fires inside the lostpassword form tags, before the hidden fields;
  • swal_forgotpassword_form_text – (action) Placed on SWAL forgot password form at the end of the form;

Other Hooks

  • before_swal_init – (action) On SWAL initialization class before any function;
  • swal_loaded – (action) On SWAL initialization class at the end of initialization functions;