This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to https://github.com/xwp/vip-quickstart/pull/3 |