Description
This filter hook comes after the html for the login form is compiled. Using this filter, you can make changes to the login form.
Note: the “login” form is used in three ways – Login, Password Change, Forgotten Password Reset. The state is determined by the value of the wp-members action variable $wpmem_a, which is available as global $wpmem_a; For password change, the value will be pwdchange and for forgotten password reset it will be pwdreset.
Parameters
$form
(string) (required) The form HTML as a string.
$action
(string) (optional) The form being generated (login|pwdreset|pwdchange|getusername)
Changelog
Introduced in version 2.7.4
$action argument added in 2.9.1
Source
wpmem_login_form is located in includes/class-wp-members-forms.php