Hello,
Thank you for contacting Rank Math today.
You can customize the following filter to modify the score tests on your site:
/**
* Allow developers to modify the test or score.
*
* @param array $tests Array of tests with score
* @param string $type Object type. Can be post, user or term.
*/
add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
unset( $tests['contentHasTOC'] );
return $tests;
}, 10, 2 );
The filter is to be added to your functions.php
Looking forward to helping you. Thank you.
Hello, I appreciate your answer, I added the code that you sent me to my functions.php but I don’t know where to modify, to which section of the plugin should I go to make the changes I mentioned before?
Hello,
We do not have the option to change the word limit from 600 to 300. You can completely disable the test though.
The score is there only for your reference anyway and doesn’t affect your actual rankings. Treat it only as a to-do list, nothing more. Don’t try to live by it and don’t follow the tests religiously.
So, you can ignore the tests that do not apply to you.
hello uzair,
I appreciate your answer, what bad news not to be able to make that modification, I know it is a reference, but I needed to modify those indicators for my team of writers, now I have a doubt, the code that Michael sent then what does it modify? And how does it work to change the score?
I remain pending,
Hello,
We are sorry we couldn’t help you with the content issue.
The code I shared is to disable the test for able of Contents by making it read as if you already have one.
Hope that helps. If you have any further question(s), please let us know. 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.