Viewing 1 replies (of 1 total)
  • Hi Arturo emilio,

    The new filter hooks are there for adding additional pages to your sitemap; here’s an example of how to use it:

    add_filter( 'aiosp_sitemap_addl_pages', 'sfwd_add_pages' );
    function sfwd_add_pages( $pages ) {
    	if ( empty( $pages ) ) $pages = Array();
    	$pages[] = Array( "loc" => "https://www.google.com/", "lastmod" => "2014-04-01T00:00:00Z", "changefreq" => "daily", "priority" => "0.1" );
    	return $pages;
    }

    If you’re using indexed sitemaps, then this gets added to the sitemap_addl.xml sitemap. There are also a couple of other new hooks in this release that should give you greater control over your results.

Viewing 1 replies (of 1 total)
  • The topic ‘New hooks aiosp_sitemap_addl_pages, how do they work?’ is closed to new replies.