Make WordPress Core


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

    r50409 r50505  
    15691569     *
    15701570     * The dynamic portion of the hook name, `$feed`, refers to the feed template name.
    1571      * Possible values include: 'rdf', 'rss', 'rss2', and 'atom'.
     1571     *
     1572     * Possible hook names include:
     1573     *
     1574     *  - `do_feed_atom`
     1575     *  - `do_feed_rdf`
     1576     *  - `do_feed_rss`
     1577     *  - `do_feed_rss2`
    15721578     *
    15731579     * @since 2.1.0
Note: See TracChangeset for help on using the changeset viewer.