wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_feed_namespaces › WordPress Function
Since7.2.0
Deprecatedn/a
› wp_feed_namespaces ( $type )
| Parameters: |
|
| Defined at: |
|
| Codex: |
Displays the XML namespaces for the root element of a feed.
Plugins should add namespaces via the {@see 'wp_feed_namespaces'} filter instead of the older {@see "{$type}_ns"} actions, as two action callbacks printing the same namespace produce a duplicate attribute, which is a well-formedness error in XML.Related Functions: wp_get_feed_namespaces, strip_core_block_namespace, wp_get_nav_menus, wp_preload_resources, wp_embed_defaults