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/includes/class-wp-theme-install-list-table.php

    r49954 r50505  
    133133         *
    134134         * The dynamic portion of the hook name, `$tab`, refers to the theme install
    135          * tabs. Default tabs are 'dashboard', 'search', 'upload', 'featured',
    136          * 'new', and 'updated'.
     135         * tab.
     136         *
     137         * Possible hook names include:
     138         *
     139         *  - `install_themes_table_api_args_dashboard`
     140         *  - `install_themes_table_api_args_featured`
     141         *  - `install_themes_table_api_args_new`
     142         *  - `install_themes_table_api_args_search`
     143         *  - `install_themes_table_api_args_updated`
     144         *  - `install_themes_table_api_args_upload`
    137145         *
    138146         * @since 3.7.0
Note: See TracChangeset for help on using the changeset viewer.