sm_sitemap_urlset

sm_sitemap_urlset

Hook Type: filter

See hook in core

Displaying hooks found in version: google-sitemap-generator.4.1.21

apply_filters('sm_sitemap_urlset') is found 1 times:

  • /sitemap-core.php line 2215
     
    		switch ( $format ) {
    			case 'sitemap':
    				$urlset = '<urlset xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xsi:schemaLocation=\'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\' xmlns=\'http://www.sitemaps.org/schemas/sitemap/0.9\'>';
    				$urlset = apply_filters( 'sm_sitemap_urlset', $urlset );
    				$this->add_element( new GoogleSitemapGeneratorXmlEntry( $urlset ) );
    				break;
    			case 'index':
    				$urlset = '<sitemapindex xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xsi:schemaLocation=\'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd\' xmlns=\'http://www.sitemaps.org/schemas/sitemap/0.9\'>';
    				$this->add_element( new GoogleSitemapGeneratorXmlEntry( $urlset ) );
    				break;