Title: excerpt_more
Last modified: August 21, 2016

---

# excerpt_more

 *  [zvrk](https://wordpress.org/support/users/zvrk/)
 * (@zvrk)
 * [12 years ago](https://wordpress.org/support/topic/excerpt_more/)
 * can i pass variable to theme_excerpt_more function with add_filter command, to
   pass ex. $more_text. This is my code
    `add_filter( ‘excerpt_more’,’theme_excerpt_more’);
   function theme_excerpt_more($output) { global $post; return ‘… <span class=”more”
   ><a href=”‘ . get_permalink( $post->ID ) . ‘” class=”link”>’ . __(‘More’, ‘web’).‘
   </a></span>’; }` and i want to pass variable $more_text
 *     ```
       add_filter( 'excerpt_more','theme_excerpt_more');
       function theme_excerpt_more($output,$more_text) {
       	global $post;
       	return '&hellip;  <span class="more"><a href="' . get_permalink( $post->ID ) . '" class="link">' . $more_text . '</a></span>';
       }
       ```
   

The topic ‘excerpt_more’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [zvrk](https://wordpress.org/support/users/zvrk/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/excerpt_more/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
