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-tags.php

    r49286 r50505  
    415415     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    416416     *
     417     * Possible hook names include:
     418     *
     419     *  - `category_pre_add_form`
     420     *  - `post_tag_pre_add_form`
     421     *
    417422     * @since 3.0.0
    418423     *
     
    430435     *
    431436     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     437     *
     438     * Possible hook names include:
     439     *
     440     *  - `category_term_new_form_tag`
     441     *  - `post_tag_term_new_form_tag`
    432442     *
    433443     * @since 3.7.0
     
    523533     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    524534     *
     535     * Possible hook names include:
     536     *
     537     *  - `category_add_form_fields`
     538     *  - `post_tag_add_form_fields`
     539     *
    525540     * @since 3.0.0
    526541     *
     
    570585     *
    571586     * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
     587     *
     588     * Possible hook names include:
     589     *
     590     *  - `category_add_form`
     591     *  - `post_tag_add_form`
    572592     *
    573593     * @since 3.0.0
     
    639659 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
    640660 *
     661 * Possible hook names include:
     662 *
     663 *  - `after-category-table`
     664 *  - `after-post_tag-table`
     665 *
    641666 * @since 3.0.0
    642667 *
Note: See TracChangeset for help on using the changeset viewer.