rss2_ns

rss2_ns

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('rss2_ns') is found 2 times:

  • /wp-includes/feed-rss2-comments.php line 22

    xmlns:atom=”http://www.w3.org/2005/Atom”
    xmlns:sy=”http://purl.org/rss/1.0/modules/syndication/”

  • /wp-includes/feed-rss2.php line 36
    	 * Fires at the end of the RSS root to add namespaces.
    	 *
    	 * @since 2.0.0
    	 */
    	do_action( 'rss2_ns' );
    	?>
    >
    
    <channel>
    	<title><?php wp_title_rss(); ?></title>
    	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    

See this hook used in plugins: