Disabling the Google News Sitemap (Pro Feature)

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The aioseop_news_sitemap_enabled filter hook (added in v3.4.0).

Description

apply_filters( 'aioseo_news_sitemap_enabled', true );

This filter can be used to disable the Google News Sitemap.


Parameters (1)

0. (bool)
whether or not the Google News Sitemap feature should be enabled. Defaults to true.

Usage

The code example below can be used to disable the Google News Sitemap feature.

add_filter( 'aioseo_news_sitemap_enabled', function() {
	return false;
});

For instructions on how to use this code, please refer to our FAQ here.