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

    r49944 r50505  
    527527         * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    528528         *
     529         * Possible hook names include:
     530         *
     531         *  - `category_row_actions`
     532         *  - `post_tag_row_actions`
     533         *
    529534         * @since 3.0.0
    530535         *
     
    616621         * The dynamic portion of the hook name, `$this->screen->taxonomy`,
    617622         * refers to the slug of the current taxonomy.
     623         *
     624         * Possible hook names include:
     625         *
     626         *  - `manage_category_custom_column`
     627         *  - `manage_post_tag_custom_column`
    618628         *
    619629         * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.