Closed RavanH closed 5 months ago
Describe the bug The sitemap/news/language filter hook currently in the Pro 3.0.61-beta release, appears to be ignored.
To Reproduce
add_filter( 'sitemap/news/language', function ( $lang, $entity ) { return 'xx'; }, 10, 2 ); add_filter( 'rank_math/sitemap/enable_caching', '__return_false' );
Expected behavior The news sitemap language node should read <news:language>xx</news:language> but it does not.
<news:language>xx</news:language>
Additional context Reported here earlier: https://wordpress.org/support/topic/polylang-compatibility-47/page/2/#post-17707324
My mistake, I did not prepend the hook slug with rank_math/ as pointed out to me on https://wordpress.org/support/topic/polylang-compatibility-47/page/2/#post-17713635
rank_math/
Describe the bug The sitemap/news/language filter hook currently in the Pro 3.0.61-beta release, appears to be ignored.
To Reproduce
Expected behavior The news sitemap language node should read
<news:language>xx</news:language>
but it does not.Additional context Reported here earlier: https://wordpress.org/support/topic/polylang-compatibility-47/page/2/#post-17707324