wpseek.com
WordPress开发者和主题制作者的搜索引擎



do_feed_{$feed} › WordPress动作钩子

Since4.4.0
已弃用n/a
› do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed )
参数: (2)
  • () is_comment_feed Whether the feed is a comment feed.
    Required: Yes
  • () feed The feed name.
    Required: Yes
定义在:
文档:

Fires once the given feed is loaded.

The dynamic portion of the hook name, `$feed`, refers to the feed template name. Possible hook names include: - `do_feed_atom` - `do_feed_rdf` - `do_feed_rss` - `do_feed_rss2`




源码

do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );