如何关闭 Rank Math Seo 中的评分过滤器

ARTRU
如何关闭 Rank Math Seo 中的评分过滤器

排名数学 SEO 是 WordPress 中流行的 SEO 插件,可帮助优化您的网站搜索引擎,跟踪您网站的 SEO 性能。

然而,您并不总是需要准确得分。特别是“内容 AI”、“目录”等部分...

Rank Math SEO 本身还可以帮助您关闭这些不必要的过滤器,以简化构建文章内容的过程。

如何禁用排名数学 SEO 内容测试

下面是我经常使用的过滤器。你只需要将代码放入文件中即可 function.php 或使用表单插件 代码片段

/** Filter RANKMATH */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	/** Table of Contents */
	unset($tests['contentHasTOC']);
	/** Number in Title */
	unset($tests['titleHasNumber']);
	/** Internal Links */
	unset($tests['linksHasInternal']);
	/** Content AI */
	unset($tests['hasContentAI']);
	/** Length of the Content */
	unset($tests['lengthContent']);
	/** Title Sentiment test */
	unset($tests['titleSentiment']);
	return $tests;
}, 10, 2);

在 Rank Math Seo 中使用评分过滤器后。您的文章轻松获得 100/100 分。

关闭 Rank Math Seo 中的评分过滤器后
关闭 Rank Math Seo 中的评分过滤器后
评论

相关文章