I want to disable irrelevant tests and suggestions

#548447
  • Resolved Yuliia Oliinyk
    Rank Math free

    Hello,
    I want to turn off the following tests as they are irrelevant for product pages:
    – Use Content AI to optimise the Product.
    – Your title doesn’t contain a positive or a negative sentiment word.
    – Your SEO title doesn’t contain a number.
    – You don’t seem to be using a Table of Contents plugin.
    And change this one to at least 200 words, not 600:
    – Content is 187 words long. Consider using at least 600 words

    Please advise how can I do this except for adding/chaging code.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Unfortunately, those tests can be disabled only by using a filter on your site. Here’s the code you can use:

    /**
     * Filter to disable multiple SEO Contest tests on Products only
     */
    add_filter('rank_math/researches/tests', function ($tests, $type) {
    	if(get_post_type() == 'product'){
    unset(
    $tests['hasContentAI'],
    $tests['titleSentiment'],
    $tests['titleHasNumber'],
    $tests['contentHasTOC'],
    	);
    	}	
    return $tests;
    }, 10, 2 );

    And here’s a guide to adding the filter to your website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Regarding the content length tests, the recommendation to use 200 words on WooCommerce products only applies to Rank Math PRO users as we have mentioned here:
    https://rankmath.com/kb/score-100-in-tests/#overall-content-length

    However, if you wanted to disable that test too,you can add this to the filter:

    $tests['lengthContent']

    Hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘I want to disable irrelevant tests and suggestions’ is closed to new replies.