aioseo_sitemap_redirect_filenames

aioseo_sitemap_redirect_filenames

Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.2.0

apply_filters('aioseo_sitemap_redirect_filenames') is found 1 times:

  • /app/Common/Sitemap/Sitemap.php line 564
    				$sitemapPatterns[ $addonName ] = $loadedAddon->helpers->getOtherSitemapPatterns();
    			}
    		}
    
    		$sitemapPatterns = apply_filters( 'aioseo_sitemap_redirect_filenames', $sitemapPatterns );
    
    		foreach ( $sitemapPatterns as $type => $patterns ) {
    			foreach ( $patterns as $pattern ) {
    				if ( preg_match( "/^$pattern$/i", $GLOBALS['wp']->request ) ) {
    					wp_safe_redirect( aioseo()->sitemap->helpers->getUrl( $type ) );
    					exit();