Doesnt work.
I think It is because you have to filter in your code.
//yoast sitemaps
add_filter( ‘wpseo_xml_sitemap_post_url’, array($this, ‘replace_yoast_xml_sitemap_post_url’), 0, 2 );
add_filter( ‘wpseo_sitemap_entry’, array($this, ‘replace_yoast_sitemap_entry’), 10, 3 );
Is it possible for me to use them on my side? Like creating your class object to use it?