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

    r50025 r50505  
    47204720     * The dynamic portion of the hook name, `$type`, refers to the generator type.
    47214721     *
     4722     * Possible hook names include:
     4723     *
     4724     *  - `get_the_generator_atom`
     4725     *  - `get_the_generator_comment`
     4726     *  - `get_the_generator_export`
     4727     *  - `get_the_generator_html`
     4728     *  - `get_the_generator_rdf`
     4729     *  - `get_the_generator_rss2`
     4730     *  - `get_the_generator_xhtml`
     4731     *
    47224732     * @since 2.5.0
    47234733     *
Note: See TracChangeset for help on using the changeset viewer.