Skip to content

Instantly share code, notes, and snippets.

@westonruter
westonruter / README
Last active September 1, 2021 18:16
Moved to https://github.com/xwp/vip-quickstart/pull/3
@jeremyfelt
jeremyfelt / wp-seo.php
Created October 5, 2012 06:34
Gist description...
add_action( 'init', 'jf_register_my_new_sitemap', 99 );
/**
* On init, run the function that will register our new sitemap as well
* as the function that will be used to generate the XML. This creates an
* action that we can hook into built around the new
* sitemap name - 'wp_seo_do_sitemap_my_new_sitemap'
*/
function jf_register_my_new_sitemap() {
global $wpseo_sitemaps;
$wpseo_sitemaps->register_sitemap( 'my_new_sitemap', 'jf_generate_my_new_sitemap' );