Make WordPress Core


Ignore:
Timestamp:
03/07/2021 12:30:38 PM (11 months 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-includes/taxonomy.php

    r50389 r50505  
    628628     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    629629     *
     630     * Possible hook names include:
     631     *
     632     *  - `taxonomy_labels_category`
     633     *  - `taxonomy_labels_post_tag`
     634     *
    630635     * @since 4.4.0
    631636     *
     
    20322037     * taxonomy the term belonged to.
    20332038     *
     2039     * Possible hook names include:
     2040     *
     2041     *  - `delete_category`
     2042     *  - `delete_post_tag`
     2043     *
    20342044     * @since 2.3.0
    20352045     * @since 4.5.0 Introduced the `$object_ids` argument.
     
    24752485     * to the slug of the taxonomy the term was created for.
    24762486     *
     2487     * Possible hook names include:
     2488     *
     2489     *  - `create_category`
     2490     *  - `create_post_tag`
     2491     *
    24772492     * @since 2.3.0
    24782493     *
     
    25132528     *
    25142529     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     2530     *
     2531     * Possible hook names include:
     2532     *
     2533     *  - `created_category`
     2534     *  - `created_post_tag`
    25152535     *
    25162536     * @since 2.3.0
     
    25412561     *
    25422562     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     2563     *
     2564     * Possible hook names include:
     2565     *
     2566     *  - `saved_category`
     2567     *  - `saved_post_tag`
    25432568     *
    25442569     * @since 5.5.0
     
    31873212     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    31883213     *
     3214     * Possible hook names include:
     3215     *
     3216     *  - `edit_category`
     3217     *  - `edit_post_tag`
     3218     *
    31893219     * @since 2.3.0
    31903220     *
     
    32183248     *
    32193249     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     3250     *
     3251     * Possible hook names include:
     3252     *
     3253     *  - `edited_category`
     3254     *  - `edited_post_tag`
    32203255     *
    32213256     * @since 2.3.0
Note: See TracChangeset for help on using the changeset viewer.