mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-10 15:44:29 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@50505 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4719,6 +4719,16 @@ function get_the_generator( $type = '' ) {
|
||||
*
|
||||
* The dynamic portion of the hook name, `$type`, refers to the generator type.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `get_the_generator_atom`
|
||||
* - `get_the_generator_comment`
|
||||
* - `get_the_generator_export`
|
||||
* - `get_the_generator_html`
|
||||
* - `get_the_generator_rdf`
|
||||
* - `get_the_generator_rss2`
|
||||
* - `get_the_generator_xhtml`
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $gen The HTML markup output to wp_head().
|
||||
|
||||
Reference in New Issue
Block a user