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-admin/theme-install.php

    r48638 r50505  
    8585     *
    8686     * The dynamic portion of the hook name, `$tab`, refers to the current
    87      * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
    88      * 'featured', 'new', or 'updated'.
     87     * theme installation tab.
     88     *
     89     * Possible hook names include:
     90     *
     91     *  - `install_themes_pre_dashboard`
     92     *  - `install_themes_pre_featured`
     93     *  - `install_themes_pre_new`
     94     *  - `install_themes_pre_search`
     95     *  - `install_themes_pre_updated`
     96     *  - `install_themes_pre_upload`
    8997     *
    9098     * @since 2.8.0
     
    252260     *
    253261     * The dynamic portion of the hook name, `$tab`, refers to the current
    254      * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
    255      * 'featured', 'new', or 'updated'.
     262     * theme installation tab.
     263     *
     264     * Possible hook names include:
     265     *
     266     *  - `install_themes_dashboard`
     267     *  - `install_themes_featured`
     268     *  - `install_themes_new`
     269     *  - `install_themes_search`
     270     *  - `install_themes_updated`
     271     *  - `install_themes_upload`
    256272     *
    257273     * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.