title: Possible to pass variable to add_filter in Wordpress excerpt
body: <p>Trying to get this to work, is it even possible to pass a variable like this?</p>
  
  <pre><code>function excerpt_read_more($output, $text) {
      global $post;
      return $output . '&lt;a href="'. get_permalink($post-&gt;ID) . '" class="readmore"&gt;'.$text.'&lt;/a&gt;';
  }
  add_filter('the_excerpt', 'excerpt_read_more');
  </code></pre>
  
  <p>I'm trying to be able to do something like this</p>
  
  <pre><code>&lt;?php the_excerpt('Read More...'); ?&gt;
  </code></pre>
  
  <p>Since I will want it to say different things throughout the site. For instance, read this post, continue reading the post, view this recipe.</p>