title: Wordpress var_dump in functions.php
body: <p>I need to do a var_dump in a custom function filter in WP but, where is the results shown? The code is working because I can see the search result structure difference from when the code is present and not</p>
  
  <pre><code>    add_filter('relevanssi_hits_filter', 'products_first');
  function products_first($hits) {
      $types = array();
  
      $types['section1'] = array();
      $types['section2'] = array();
      $types['section3'] = array();
      $types['section4'] = array();
  
      // Split the post types in array $types
      if (!empty($hits)) {
          foreach ($hits[0] as $hit) {
              array_push($types_1[$hit-&gt;post_type], $hit);
          }
      }
  
      // Merge back to $hits in the desired order
      var_dump($types);
      $hits[0] = array_merge($types['section1'], $types['section2'], $types['section3'], $types['section4']);
      return $hits;
  }
  </code></pre>