title: This use of posts_where() function is not clear
body: <p>I have this very short function that I do not understand at all, and the comment is laughable:</p>
  
  <pre><code>// This function makes the meta query work
  function my_posts_where( $where ) {
      $where = str_replace("meta_key = 'bonuses_%", "meta_key LIKE 'bonuses_%", $where);
      return $where;
  }
  add_filter('posts_where', 'my_posts_where');
  </code></pre>
  
  <p>The meta query in question is a standard WP query with <code>array_push($args['meta_query'],$bonusesArgs);</code> pushing $bonusesArgs (the meta query) into it.</p>
  
  <p>Without the my_posts_where function, the meta query doesn't work. And I have no idea why (and neither did the developer apparently...!)</p>
  
  <p>I am hoping that someone can explain the my_posts_where function - what is it doing, I've looked all over and can't make sense of it.</p>