Title: login_form_{$action}
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( “login_form_{$action}” )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#wp--skip-link--target)

Fires before a specified login form action.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$action`, refers to the action that brought
the visitor to the login form.

Possible hook names include:

 * `login_form_checkemail`
 * `login_form_confirm_admin_email`
 * `login_form_confirmaction`
 * `login_form_entered_recovery_mode`
 * `login_form_login`
 * `login_form_logout`
 * `login_form_lostpassword`
 * `login_form_postpass`
 * `login_form_register`
 * `login_form_resetpass`
 * `login_form_retrievepassword`
 * `login_form_rp`

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#source)󠁿

    ```php
    do_action( "login_form_{$action}" );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-login.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-login.php#L571)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-login.php#L571-L571)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/login_form_action/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_form_action%2F)
before being able to contribute a note or feedback.