Developers: How to ignore certain words

Add the following to your theme's functions.php file to ignore certain words from being considered by the algorithm:

if ( function_exists( 'yarpp_related' ) ) {
  function add_additional_overused_words($overusedwords) {
    $additional_words = array('of', 'that', 'on'); // Add your words here
    return array_merge($overusedwords, $additional_words);
  add_filter('yarpp_keywords_overused_words', 'add_additional_overused_words');

Note: Words that are a single letter are automatically ignored. As are some common words - these default stop words can be found under /lang/words-<locale>.php

Was this article helpful?
0 out of 0 found this helpful