Make WordPress Core


Ignore:
Timestamp:
03/07/2021 12:30:38 PM (6 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/post.php

    r50297 r50505  
    11691169         * The dynamic portion of the hook name, `$post_type`, refers to the post type.
    11701170         *
    1171          * Some examples of filter hooks generated here include: 'edit_attachment_per_page',
    1172          * 'edit_post_per_page', 'edit_page_per_page', etc.
     1171         * Possible hook names include:
     1172         *
     1173         *  - `edit_post_per_page`
     1174         *  - `edit_page_per_page`
     1175         *  - `edit_attachment_per_page`
    11731176         *
    11741177         * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.