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/edit-tag-form.php

    r49183 r50505  
    6060 * The dynamic portion of the hook name, `$taxonomy`, refers to
    6161 * the taxonomy slug.
     62 *
     63 * Possible hook names include:
     64 *
     65 *  - `category_pre_edit_form`
     66 *  - `post_tag_pre_edit_form`
    6267 *
    6368 * @since 3.0.0
     
    97102 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    98103 *
     104 * Possible hook names include:
     105 *
     106 *  - `category_term_edit_form_tag`
     107 *  - `post_tag_term_edit_form_tag`
     108 *
    99109 * @since 3.7.0
    100110 */
     
    115125 *
    116126 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     127 *
     128 * Possible hook names include:
     129 *
     130 *  - `category_term_edit_form_top`
     131 *  - `post_tag_term_edit_form_top`
    117132 *
    118133 * @since 4.5.0
     
    230245         * the taxonomy slug.
    231246         *
     247         * Possible hook names include:
     248         *
     249         *  - `category_edit_form_fields`
     250         *  - `post_tag_edit_form_fields`
     251         *
    232252         * @since 3.0.0
    233253         *
     
    262282 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    263283 *
     284 * Possible hook names include:
     285 *
     286 *  - `category_edit_form`
     287 *  - `post_tag_edit_form`
     288 *
    264289 * @since 3.0.0
    265290 *
Note: See TracChangeset for help on using the changeset viewer.