Make WordPress Core


Ignore:
Timestamp:
03/07/2021 12:30:38 PM (4 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r50153 r50505  
    431431 *
    432432 * The dynamic portion of the hook name, `$action`, refers to the action
    433  * that brought the visitor to the login form. Actions include 'postpass',
    434  * 'logout', 'lostpassword', etc.
     433 * that brought the visitor to the login form.
     434 *
     435 * Possible hook names include:
     436 *
     437 *  - 'login_form_checkemail'
     438 *  - 'login_form_confirm_admin_email'
     439 *  - 'login_form_confirmaction'
     440 *  - 'login_form_entered_recovery_mode'
     441 *  - 'login_form_login'
     442 *  - 'login_form_logout'
     443 *  - 'login_form_lostpassword'
     444 *  - 'login_form_postpass'
     445 *  - 'login_form_register'
     446 *  - 'login_form_resetpass'
     447 *  - 'login_form_retrievepassword'
     448 *  - 'login_form_rp'
    435449 *
    436450 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.