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-includes/link-template.php

    r50393 r50505  
    18121812     * of adjacency, 'next' or 'previous'.
    18131813     *
     1814     * Possible hook names include:
     1815     *
     1816     *  - `get_next_post_excluded_terms`
     1817     *  - `get_previous_post_excluded_terms`
     1818     *
    18141819     * @since 4.4.0
    18151820     *
     
    18831888     * of adjacency, 'next' or 'previous'.
    18841889     *
     1890     * Possible hook names include:
     1891     *
     1892     *  - `get_next_post_join`
     1893     *  - `get_previous_post_join`
     1894     *
    18851895     * @since 2.5.0
    18861896     * @since 4.4.0 Added the `$taxonomy` and `$post` parameters.
     
    19001910     * of adjacency, 'next' or 'previous'.
    19011911     *
     1912     * Possible hook names include:
     1913     *
     1914     *  - `get_next_post_where`
     1915     *  - `get_previous_post_where`
     1916     *
    19021917     * @since 2.5.0
    19031918     * @since 4.4.0 Added the `$taxonomy` and `$post` parameters.
     
    19161931     * The dynamic portion of the hook name, `$adjacent`, refers to the type
    19171932     * of adjacency, 'next' or 'previous'.
     1933     *
     1934     * Possible hook names include:
     1935     *
     1936     *  - `get_next_post_sort`
     1937     *  - `get_previous_post_sort`
    19181938     *
    19191939     * @since 2.5.0
     
    20042024     * The dynamic portion of the hook name, `$adjacent`, refers to the type
    20052025     * of adjacency, 'next' or 'previous'.
     2026     *
     2027     * Possible hook names include:
     2028     *
     2029     *  - `next_post_rel_link`
     2030     *  - `previous_post_rel_link`
    20062031     *
    20072032     * @since 2.8.0
     
    22612286     * The dynamic portion of the hook name, `$adjacent`, refers to the type
    22622287     * of adjacency, 'next' or 'previous'.
     2288     *
     2289     * Possible hook names include:
     2290     *
     2291     *  - `next_post_link`
     2292     *  - `previous_post_link`
    22632293     *
    22642294     * @since 2.6.0
Note: See TracChangeset for help on using the changeset viewer.