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-plugin-install-list-table.php

    r48970 r50505  
    214214         *
    215215         * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs.
    216          * Default tabs include 'featured', 'popular', 'recommended', 'favorites', and 'upload'.
     216         *
     217         * Possible hook names include:
     218         *
     219         *  - `install_plugins_table_api_args_favorites`
     220         *  - `install_plugins_table_api_args_featured`
     221         *  - `install_plugins_table_api_args_popular`
     222         *  - `install_plugins_table_api_args_recommended`
     223         *  - `install_plugins_table_api_args_upload`
    217224         *
    218225         * @since 3.7.0
Note: See TracChangeset for help on using the changeset viewer.