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/class-wp-posts-list-table.php

    r50120 r50505  
    633633                 * type slug.
    634634                 *
     635                 * Possible hook names include:
     636                 *
     637                 *  - `manage_taxonomies_for_post_columns`
     638                 *  - `manage_taxonomies_for_page_columns`
     639                 *
    635640                 * @since 3.5.0
    636641                 *
     
    687692                 *
    688693                 * The dynamic portion of the hook name, `$post_type`, refers to the post type slug.
     694                 *
     695                 * Possible hook names include:
     696                 *
     697                 *  - `manage_post_posts_columns`
     698                 *  - `manage_page_posts_columns`
    689699                 *
    690700                 * @since 3.0.0
     
    12751285                 * The dynamic portion of the hook name, `$post->post_type`, refers to the post type.
    12761286                 *
     1287                 * Possible hook names include:
     1288                 *
     1289                 *  - `manage_post_posts_custom_column`
     1290                 *  - `manage_page_posts_custom_column`
     1291                 *
    12771292                 * @since 3.1.0
    12781293                 *
Note: See TracChangeset for help on using the changeset viewer.