🛍 Black Friday Sale: 35% DISCOUNT + 2x Benefits + $15K+ Offers!

LEARN MORE!

How to Disable Rank Math SEO Content Tests

If you feel that certain tests or suggestions that Rank Math offers aren’t relevant to the specific type of content you publish, you’re in luck because Rank Math makes it extremely easy to disable certain tests. In this knowledgebase article, we’ll walk you through how to disable certain Rank Math SEO content suggestions & tests.

Disable Rank Math SEO Content Tests & Suggestions

To disable specific on-page SEO tests that Rank Math runs, you should add the respective filter to your website’s rank-math.php file.

To add a filter, head over to Appearance → Theme File Editor (for Classic Theme) or Tools → Theme File Editor (for Block Theme) inside your WordPress admin area.

Theme File Editor under Appearance section

Now, from the list of files shown on the right side of the screen, choose the rank-math.php file. Add the code snippet in the code editor available at the middle of the screen, and then click the Update File button.

Adding code to disable Rank Math tests

Now that we’re clear with how to add the code snippet to your website, let us discuss various filters available to disable Rank Math tests.

1 Remove the Number in Title Test

Remove the number in the title test with the following code:

/**
 * Filter to disable Number in Title test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['titleHasNumber']);
	return $tests;
}, 10, 2 );

2 Disable the Table of Contents Test

Disable the table of content’s test with the following code:

/**
 * Filter to disable Table of Content test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['contentHasTOC']);
	return $tests;
}, 10, 2 );

3 Disable the Short Paragraph’s Test

Disable the short paragraph’s test with the following code:

/**
 * Filter to disable Short Paragraph test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['contentHasShortParagraphs']);
	return $tests;
}, 10, 2 );

4 Disable the Assets Test

Disable the assets test with the following code:

/**
 * Filter to disable Assets test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['contentHasAssets']);
	return $tests;
}, 10, 2 );

5 Disable the Keyword in Title Test

Disable the keyword in the title test with the following code:

/**
 * Filter to disable Keyword in Title test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInTitle']);
	return $tests;
}, 10, 2 );

6 Disable the Keyword in Meta Description Test

Disable the keyword in the meta description test with the following code:

/**
 * Filter to disable Keyword in Meta Description test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInMetaDescription']);
	return $tests;
}, 10, 2 );

Disable the keyword in the permalink test with the following code:

/**
 * Filter to disable Keyword in Permalink test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInPermalink']);
	return $tests;
}, 10, 2 );

8 Disable the Keyword in 10 Percent Test

Disable the keyword in the first 10 percent of the content test with the following code:

/**
 * Filter to disable Keyword in First ten percent of Content test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordIn10Percent']);
	return $tests;
}, 10, 2 );

9 Disable the Keyword in Content Test

Disable the keyword in the content test with the following code:

/**
 * Filter to disable Keyword in Content test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInContent']);
	return $tests;
}, 10, 2 );

10 Disable the Keyword in Subheadings Test

Disable the keyword in the subheadings test with the following code:

/**
 * Filter to disable Keyword in Subheadings test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInSubheadings']);
	return $tests;
}, 10, 2 );

11 Disable the Keyword in Image Alt Test

Disable the keyword in the Image Alt test with the following code:

/**
 * Filter to disable Keyword in Image Alt test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordInImageAlt']);
	return $tests;
}, 10, 2 );

12 Disable the Keyword Density Test

Disable the keyword density test with the following code:

/**
 * Filter to disable Keyword Density test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordDensity']);
	return $tests;
}, 10, 2 );

13 Disable the Keyword Not Used Test

Disable the keyword not used test with the following code:

/**
 * Filter to disable Keyword not used before test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['keywordNotUsed']);
	return $tests;
}, 10, 2 );

14 Disable the Length of the Content Test

Disable the length of the content test with the following code:

/**
 * Filter to disable length of the content test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['lengthContent']);
	return $tests;
}, 10, 2 );

Disable the length of the permalink test with the following code:

/**
 * Filter to disable length of the permalink test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['lengthPermalink']);
	return $tests;
}, 10, 2 );

Disable the internal links test with the following code:

/**
 * Filter to disable Internal Links test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['linksHasInternal']);
	return $tests;
}, 10, 2 );

Disable the external links test with the following code:

/**
 * Filter to disable External Links test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['linksHasExternals']);
	return $tests;
}, 10, 2 );

Disable the external dofollow link test with the following code:

/**
 * Filter to disable External Dofollow Link test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['linksNotAllExternals']);
	return $tests;
}, 10, 2 );

19 Disable the Title Start with Keyword Test

Disable the title start with keyword test with the following code:

/**
 * Filter to disable Title starts with Keyword test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['titleStartWithKeyword']);
	return $tests;
}, 10, 2 );

20 Disable the Title Sentiment Test

Disable the title sentiment test with the following code:

/**
 * Filter to disable Title Sentiment test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['titleSentiment']);
	return $tests;
}, 10, 2 );

21 Disable Title has Power Words Test

Disable the title has power words test with the following code:

/**
 * Filter to disable Title has Power Words test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['titleHasPowerWords']);
	return $tests;
}, 10, 2 );

22 Disable Content AI Test

Disable the content AI test with the following code:

/**
 * Filter to disable Content AI test.
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['hasContentAI']);
	return $tests;
}, 10, 2);

23 Disable Review Test

Note: This is available only for WooCommerce products and Easy Digital Downloads.

You can disable the review test in the SEO content test, as shown below.

/**
 * Filter to disable review test in SEO Contest tests
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['isReviewEnabled']);
	return $tests;
}, 10, 2);

24 Disable Product Schema Test

Note: This is available only for WooCommerce products and Easy Digital Downloads.

You can disable the Product Schema test with the following code.

/**
 * Filter to disable Product Schema test
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset($tests['hasProductSchema']);
	return $tests;
}, 10, 2);

25 Disable Multiple Tests

You can disable multiple tests like this:

/**
 * Filter to disable multiple SEO Contest tests
 */
add_filter('rank_math/researches/tests', function ($tests, $type) {
	unset(
		$tests['titleHasNumber'],
		$tests['contentHasTOC'],
		$tests['titleSentiment'],
		$tests['titleHasPowerWords']
	);
	return $tests;
}, 10, 2);

And, that’s it! If you still have any questions, you’re always more than welcome to contact our dedicated support team, who are available 24/7, 365 days a year, to help you.

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?

?

Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles