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



wp_feed_namespaces › WordPress过滤钩子

Since7.2.0
已弃用n/a
› apply_filters( 'wp_feed_namespaces', $defaults, $type )
参数: (2)
  • () namespaces Array of namespace URIs, keyed by their prefix.
    Required: Yes
  • () type Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.
    Required: Yes
定义在:
文档:

Filters the XML namespaces of a feed's root element.

Namespaces are keyed by their prefix, which makes duplicate `xmlns` attributes impossible.




源码

$namespaces = apply_filters( 'wp_feed_namespaces', $defaults, $type );