mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 21:54:28 +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:
@@ -1568,7 +1568,13 @@ function do_feed() {
|
||||
* Fires once the given feed is loaded.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$feed`, refers to the feed template name.
|
||||
* Possible values include: 'rdf', 'rss', 'rss2', and 'atom'.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `do_feed_atom`
|
||||
* - `do_feed_rdf`
|
||||
* - `do_feed_rss`
|
||||
* - `do_feed_rss2`
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @since 4.4.0 The `$feed` parameter was added.
|
||||
|
||||
Reference in New Issue
Block a user