wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_feed_namespaces › WordPress Filter Hooks

Since7.2.0
Deprecatedn/a
apply_filters( 'wp_feed_namespaces', $defaults, $type )
Parameters: (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
Defined at:
Codex:

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

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




Source

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