login_form_{$action} WordPress Action Hook

The login_form_{$action} hook is used to modify the login form for a specific action. This hook can be used to add extra fields to the login form, or to change the order of the fields.

do_action( "login_form_{$action}" ) #

Fires before a specified login form action.


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

Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.