functionbloginfo_rss($show = '' ){ /**
* Filters the bloginfo for display in RSS feeds.
*
* @since 2.1.0
*
* @see get_bloginfo()
*
* @param string $rss_container RSS container for the blog information.
* @param string $show The type of blog information to retrieve.
*/ echoapply_filters( 'bloginfo_rss', get_bloginfo_rss($show), $show); }
/**
* Retrieves the default feed.
*
* The default feed is 'rss2', unless a plugin changes it through the
* {@see 'default_feed'} filter.
*
* @since 2.5.0
*
* @return string Default feed, or for example 'rss2', 'atom', etc.
*/
functionwxr_site_url(){ if(is_multisite()){ // Multisite: the base URL.
returnnetwork_home_url(); }else{ // WordPress (single site): the site URL.
returnget_bloginfo_rss( 'url' ); } }
/**
* Outputs a cat_name XML tag from a given category object.
*
* @since 2.1.0
*
* @param WP_Term $category Category Object.
*/ functionwxr_cat_name($category){