wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_feed_namespaces › WordPress Filter Hooks

Seit7.2.0
Veraltetn/v
apply_filters( 'wp_feed_namespaces', $defaults, $type )
Parameter: (2)
  • () namespaces Array of namespace URIs, keyed by their prefix.
    Erforderlich: Ja
  • () type Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.
    Erforderlich: Ja
Definiert in:
Codex:

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

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




Quellcode

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