1. Home
  2. Knowledge Base
  3. How to Disable Rank Math SEO Content Tests

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 functions.php or rank-math.php file.

To add a filter, head over to Appearance > Theme Editor inside your WordPress admin area and from the list of files shown on the right side of the screen, choose rank-math.php (or functions.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 Removing the Number in Title Test

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

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['titleHasNumber'],
	);
    return $tests;
}, 10, 2 );

2 Disable the Table Of Content’s Test

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

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:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['contentHasShortParagraphs'],
	);
    return $tests;
}, 10, 2 );

4 Disable the Asset’s Test

Disable the asset’s test with the following code:

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 title test with the following code:

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 meta description test with the following code:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['keywordInMetaDescription'],
	);
    return $tests;
}, 10, 2 );

Disable the keyword in permalink test with the following code:

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 10 percent test with the following code:

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 content test with the following code:

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 subheadings test with the following code:

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 Image Alt test with the following code:

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:

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:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['keywordNotUsed'],
	);
    return $tests;
}, 10, 2 );

14 Disable the Length in Content Test

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

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['lengthContent'],
	);
    return $tests;
}, 10, 2 );

Disable the length in permalink test with the following code:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['lengthPermalink'],
	);
    return $tests;
}, 10, 2 );

Disable the links has Internal with the following code:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['linksHasInternal'],
	);
    return $tests;
}, 10, 2 );

Disable the links has Externals with the following code:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['linksHasExternals'],
	);
    return $tests;
}, 10, 2 );

Disable the links not all externals with the following code:

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:

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:

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:

add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
	unset(
		$tests['titleHasPowerWords'],
	);
    return $tests;
}, 10, 2 );

22 Disable Multiple Tests

You can disable multiple tests like this:

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.

Was this article helpful?

Still need help?

?

Submit Your Question

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

Open Ticket