Docs: Add examples of possible names for various hooks whose name contains a dynamic portion.

This provides greater discoverability of such hooks in search results on the Code Reference site as well as increased clarity when reading the source.

See #50734, #52628


git-svn-id: https://develop.svn.wordpress.org/trunk@50505 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-03-07 12:30:38 +00:00
parent c3be472657
commit fa05e5e733
26 changed files with 403 additions and 35 deletions

View File

@@ -430,8 +430,22 @@ do_action( 'login_init' );
* Fires before a specified login form action.
*
* The dynamic portion of the hook name, `$action`, refers to the action
* that brought the visitor to the login form. Actions include 'postpass',
* 'logout', 'lostpassword', etc.
* 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'
*
* @since 2.8.0
*/